Java Platform 1.2

org.omg.CORBA.portable
Class ObjectImpl

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
Direct Known Subclasses:
_BindingIteratorStub, _NamingContextStub, 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)
          default implementation of the org.omg.CORBA.Object method.
 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.
 Object _duplicate()
          default implementation of the org.omg.CORBA.Object method.
 Delegate _get_delegate()
          return the Delegate contained in this ObjectImpl instance.
 DomainManager[] _get_domain_managers()
           
 Object _get_interface_def()
          default implementation of the org.omg.CORBA.Object method.
 Policy _get_policy(int policy_type)
           
 int _hash(int maximum)
          default implementation of the org.omg.CORBA.Object method.
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.CORBA.Object method.
 boolean _is_equivalent(Object that)
          default implementation of the org.omg.CORBA.Object method.
 boolean _is_local()
           
 boolean _non_existent()
          default implementation of the org.omg.CORBA.Object method.
 ORB _orb()
          return the ORB instance which created the Delegate contained in this ObjectImpl.
 void _release()
          default implementation of the org.omg.CORBA.Object method.
 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.
 Request _request(String operation)
          default implementation of the org.omg.CORBA.Object method.
 OutputStream _request(String operation, boolean responseExpected)
          _request is called by a stub to obtain an OutputStream for marshaling arguments.
 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)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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_def

public Object _get_interface_def()
default implementation of the org.omg.CORBA.Object method.
Specified by:
_get_interface_def 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,
                           RemarshalException
_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.

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Java Platform 1.2

Submit a bug or feature Version 1.2 of Java Platform API Specification
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.