Java Platform 1.2
Beta 4

Class org.omg.CORBA.portable.ObjectImpl

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
Direct Known Subclasses:
DynamicImplementation

public abstract class ObjectImpl
extends Object
implements Object
The ObjectImpl class provides default implementations of the org.omg.CORBA.Object methods. All method implementations are forwarded to a Delegate object stored in the ObjectImpl instance. ObjectImpl is the common base class for all stub classes. ObjectImpl allows for portable stubs because the Delegate can be implemented by a different vendor-specific ORB.


Constructor Summary
ObjectImpl()
           
 
Method Summary
 Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exceptions, ContextList contexts)
          default implementation of the org.omg.
 Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result)
          default implementation of the org.omg.
 Object _duplicate()
          default implementation of the org.omg.
 Delegate _get_delegate()
          return the Delegate contained in this ObjectImpl instance.
 DomainManager[] _get_domain_managers()
           
 ImplementationDef _get_implementation()
          default implementation of the org.omg.
 InterfaceDef _get_interface()
          default implementation of the org.omg.
 Policy _get_policy(int policy_type)
           
 int _hash(int maximum)
          default implementation of the org.omg.
abstract  String[] _ids()
          return the array of all repository identifiers supported by this ObjectImpl instance (e.g.
 InputStream _invoke(OutputStream output)
          _invoke is called to invoke an operation.
 boolean _is_a(String repository_id)
          default implementation of the org.omg.
 boolean _is_equivalent(Object that)
          default implementation of the org.omg.
 boolean _is_local()
           
 boolean _non_existent()
          default implementation of the org.omg.
 ORB _orb()
          return the ORB instance which created the Delegate contained in this ObjectImpl.
 void _release()
          default implementation of the org.omg.
 void _releaseReply(InputStream input)
          _releaseReply may optionally be called by a stub to release a reply stream back to the ORB when the unmarshaling has completed.
 OutputStream _request(String operation, boolean responseExpected)
          _request is called by a stub to obtain an OutputStream for marshaling arguments.
 Request _request(String operation)
          default implementation of the org.omg.
 void _servant_postinvoke(ServantObject servant)
           
 ServantObject _servant_preinvoke(String operation, Class expectedType)
           
 void _set_delegate(Delegate delegate)
          set the Delegate contained in this ObjectImpl instance.
 Object _set_policy_override(Policy[] policies, SetOverrideType set_add)
           
 
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

Constructor Detail

ObjectImpl

public ObjectImpl()
Method Detail

_get_delegate

public Delegate _get_delegate()
return the Delegate contained in this ObjectImpl instance.

_set_delegate

public void _set_delegate(Delegate delegate)
set the Delegate contained in this ObjectImpl instance.

_ids

public abstract String[] _ids()
return the array of all repository identifiers supported by this ObjectImpl instance (e.g. For a stub, _ids() will return information about all interfaces supported by the stub).

_duplicate

public Object _duplicate()
default implementation of the org.omg.CORBA.Object method.
Specified by:
_duplicate in interface Object

_release

public void _release()
default implementation of the org.omg.CORBA.Object method.
Specified by:
_release in interface Object

_is_a

public boolean _is_a(String repository_id)
default implementation of the org.omg.CORBA.Object method.
Specified by:
_is_a in interface Object

_is_equivalent

public boolean _is_equivalent(Object that)
default implementation of the org.omg.CORBA.Object method.
Specified by:
_is_equivalent in interface Object

_non_existent

public boolean _non_existent()
default implementation of the org.omg.CORBA.Object method.
Specified by:
_non_existent in interface Object

_hash

public int _hash(int maximum)
default implementation of the org.omg.CORBA.Object method.
Specified by:
_hash in interface Object

_request

public Request _request(String operation)
default implementation of the org.omg.CORBA.Object method.
Specified by:
_request in interface Object

_create_request

public Request _create_request(Context ctx,
                               String operation,
                               NVList arg_list,
                               NamedValue result)
default implementation of the org.omg.CORBA.Object method.
Specified by:
_create_request in interface Object

_create_request

public Request _create_request(Context ctx,
                               String operation,
                               NVList arg_list,
                               NamedValue result,
                               ExceptionList exceptions,
                               ContextList contexts)
default implementation of the org.omg.CORBA.Object method.
Specified by:
_create_request in interface Object

_get_interface

public InterfaceDef _get_interface()
default implementation of the org.omg.CORBA.Object method.
Specified by:
_get_interface in interface Object

_get_implementation

public ImplementationDef _get_implementation()
default implementation of the org.omg.CORBA.Object method.
Specified by:
_get_implementation in interface Object

_orb

public ORB _orb()
return the ORB instance which created the Delegate contained in this ObjectImpl.

_get_policy

public Policy _get_policy(int policy_type)
Specified by:
_get_policy in interface Object

_get_domain_managers

public DomainManager[] _get_domain_managers()
Specified by:
_get_domain_managers in interface Object

_set_policy_override

public Object _set_policy_override(Policy[] policies,
                                   SetOverrideType set_add)
Specified by:
_set_policy_override in interface Object

_is_local

public boolean _is_local()

_servant_preinvoke

public ServantObject _servant_preinvoke(String operation,
                                        Class expectedType)

_servant_postinvoke

public void _servant_postinvoke(ServantObject servant)

_request

public OutputStream _request(String operation,
                             boolean responseExpected)
_request is called by a stub to obtain an OutputStream for marshaling arguments. The stub must supply the operation name, and indicate if a response is expected (i.e is this a oneway call).

_invoke

public InputStream _invoke(OutputStream output)
                    throws ApplicationException,
                           SystemException
_invoke is called to invoke an operation. The stub provides an OutputStream that was previously returned by a _request() call. _invoke returns an InputStream which contains the marshaled reply. If an exception occurs, _invoke may throw an ApplicationException object which contains an InputStream from which the user exception state may be unmarshaled.

_releaseReply

public void _releaseReply(InputStream input)
_releaseReply may optionally be called by a stub to release a reply stream back to the ORB when the unmarshaling has completed. The stub passes the InputStream returned by _invoke() or ApplicationException.getInputStream(). A null value may also be passed to _releaseReply, in which case the method is a noop.

Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.