Save This Page
Home » openjdk-7 » org.omg » CORBA » portable » [javadoc | source]
org.omg.CORBA.portable
abstract public class: ObjectImpl [javadoc | source]
java.lang.Object
   org.omg.CORBA.portable.ObjectImpl

All Implemented Interfaces:
    Object

Direct Known Subclasses:
    _NamingContextExtStub, ServerManagerImpl, POACurrent, FVDCodeBaseImpl, _BindingIteratorImplBase, ServerCallback, DynamicStubImpl, _BindingIteratorStub, _IDLTypeStub, _PolicyStub, _NamingContextImplBase, _NamingContextExtImplBase, _ServantActivatorStub, CachedCodeBase, _IDLTypeStub, CORBAObjectImpl, _ServantLocatorStub, _Remote_Stub, _CodeBaseImplBase, DynamicImplementation, RepositoryImpl, _CodeBaseStub, _NamingContextStub, ObjectImpl

The common base class for all stub classes; 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 allows for portable stubs because the Delegate can be implemented by a different vendor-specific ORB.
Method from org.omg.CORBA.portable.ObjectImpl Summary:
_create_request,   _create_request,   _duplicate,   _get_delegate,   _get_domain_managers,   _get_interface_def,   _get_policy,   _hash,   _ids,   _invoke,   _is_a,   _is_equivalent,   _is_local,   _non_existent,   _orb,   _release,   _releaseReply,   _request,   _request,   _servant_postinvoke,   _servant_preinvoke,   _set_delegate,   _set_policy_override,   equals,   hashCode,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.omg.CORBA.portable.ObjectImpl Detail:
 public Request _create_request(Context ctx,
    String operation,
    NVList arg_list,
    NamedValue result) 
    Creates a Request object that contains the given context, method, argument list, and container for the result.
 public Request _create_request(Context ctx,
    String operation,
    NVList arg_list,
    NamedValue result,
    ExceptionList exceptions,
    ContextList contexts) 
    Creates a Request object that contains the given context, method, argument list, container for the result, exceptions, and list of property names to be used in resolving the context strings. This Request object is for use in the Dynamic Invocation Interface.
 public Object _duplicate() 
    Returns a duplicate of this ObjectImpl object.
 public Delegate _get_delegate() 
    Retrieves the reference to the vendor-specific Delegate object to which this ObjectImpl object delegates all methods invoked on it.
 public DomainManager[] _get_domain_managers() 
    Retrieves a list of the domain managers for this ObjectImpl object.
 public Object _get_interface_def() 
    Retrieves the interface definition for this ObjectImpl object.
 public Policy _get_policy(int policy_type) 
    Retrieves the Policy object for this ObjectImpl object that has the given policy type.
 public int _hash(int maximum) 
    Retrieves the hash code that serves as an ORB-internal identifier for this ObjectImpl object.
 abstract public String[] _ids()
    Retrieves a string array containing the repository identifiers supported by this ObjectImpl object. For example, for a stub, this method returns information about all the interfaces supported by the stub.
 public InputStream _invoke(OutputStream output) throws RemarshalException, ApplicationException 
    Invokes an operation and returns an InputStream object for reading the response. The stub provides the OutputStream object that was previously returned by a call to the _request method. The method specified as an argument to _request when it was called previously is the method that this method invokes.

    If an exception occurs, the _invoke method may throw an ApplicationException object that contains an InputStream from which the user exception state may be unmarshalled.

 public boolean _is_a(String repository_id) 
    Checks whether the object identified by the given repository identifier is an ObjectImpl object.
 public boolean _is_equivalent(Object that) 
    Checks whether the the given ObjectImpl object is equivalent to this ObjectImpl object.
 public boolean _is_local() 
    Checks whether this ObjectImpl object is implemented by a local servant. If so, local invocation API's may be used.
 public boolean _non_existent() 
    Checks whether the server object for this ObjectImpl object has been destroyed.
 public ORB _orb() 
    Returns a reference to the ORB associated with this object and its delegate. This is the ORB object that created the delegate.
 public  void _release() 
    Releases the resources associated with this ObjectImpl object.
 public  void _releaseReply(InputStream input) 
    Releases the given reply stream back to the ORB when unmarshalling has completed after a call to the method _invoke. Calling this method is optional for the stub.
 public Request _request(String operation) 
    Creates a Request object containing the given method that can be used with the Dynamic Invocation Interface.
 public OutputStream _request(String operation,
    boolean responseExpected) 
    Returns an OutputStream object to use for marshalling the arguments of the given method. This method is called by a stub, which must indicate if a response is expected, that is, whether or not the call is oneway.
 public  void _servant_postinvoke(ServantObject servant) 
    Is called by the local stub after it has invoked an operation on the local servant that was previously retrieved from a call to the method _servant_preinvoke. The _servant_postinvoke method must be called if the _servant_preinvoke method returned a non-null value, even if an exception was thrown by the method invoked by the servant. For this reason, the call to the method _servant_postinvoke should be placed in a Java finally clause.
 public ServantObject _servant_preinvoke(String operation,
    Class expectedType) 
    Returns a Java reference to the local servant that should be used for sending a request for the method specified. If this ObjectImpl object is a local stub, it will invoke the _servant_preinvoke method before sending a request in order to obtain the ServantObject instance to use.

    If a ServantObject object is returned, its servant field has been set to an object of the expected type (Note: the object may or may not be the actual servant instance). The local stub may cast the servant field to the expected type, and then invoke the operation directly. The ServantRequest object is valid for only one invocation and cannot be used for more than one invocation.

 public  void _set_delegate(Delegate delegate) 
    Sets the Delegate for this ObjectImpl instance to the given Delegate object. All method invocations on this ObjectImpl object will be forwarded to this delegate.
 public Object _set_policy_override(Policy[] policies,
    SetOverrideType set_add) 
    Sets this ObjectImpl object's override type for the given policies to the given instance of SetOverrideType.
 public boolean equals(Object obj) 
    Compares this ObjectImpl object with the given one for equality.
 public int hashCode() 
    Returns the hash code for this ObjectImpl object.
 public String toString() 
    Returns a String object that represents this ObjectImpl object.