Class StubWrapper
java.lang.Object
com.sun.corba.se.spi.presentation.rmi.StubWrapper
- All Implemented Interfaces:
DynamicStub,Object
Wrapper that can take any stub (object x such that StubAdapter.isStub(x))
and treat it as a DynamicStub.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_create_request(Context ctx, String operation, NVList arg_list, NamedValue result) Creates aRequestinstance initialized with the given context, method name, list of arguments, and container for the method's return value._create_request(Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exclist, ContextList ctxlist) Creates aRequestinstance initialized with the given context, method name, list of arguments, container for the method's return value, list of possible exceptions, and list of context strings needing to be resolved.Returns a duplicate of this CORBA object reference.Retrieves theDomainManagersof this object.Obtains anInterfaceDeffor the object implementation referenced by this object reference._get_policy(int policy_type) Returns thePolicyobject of the specified type which applies to this object.int_hash(int maximum) Returns an ORB-internal identifier for this object reference.booleanChecks whether this object is an instance of a class that implements the given interface.boolean_is_equivalent(Object other) Determines whether the two object references are equivalent, so far as the ORB can easily determine.booleanDetermines whether the server object for this object reference has been destroyed.void_release()Signals that the caller is done using this object reference, so internal ORB resources associated with this object reference can be released.Creates aRequestinstance for use in the Dynamic Invocation Interface._set_policy_override(Policy[] policies, SetOverrideType set_add) Returns a newObjectwith the given policies either replacing any existing policies in thisObjector with the given policies added to the existing ones, depending on the value of the givenSetOverrideTypeobject.voidConnect this dynamic stub to an ORB.Similar to ObjectImpl.getORB()Similar to ObjectImpl.String[]Similar to ObjectImpl.booleanisLocal()voidsetDelegate(Delegate delegate) Similar to ObjectImpl.
-
Constructor Details
-
StubWrapper
-
-
Method Details
-
setDelegate
Description copied from interface:DynamicStubSimilar to ObjectImpl._set_delegate- Specified by:
setDelegatein interfaceDynamicStub
-
getDelegate
Description copied from interface:DynamicStubSimilar to ObjectImpl._get_delegate- Specified by:
getDelegatein interfaceDynamicStub
-
getORB
Description copied from interface:DynamicStubSimilar to ObjectImpl._orb()- Specified by:
getORBin interfaceDynamicStub
-
getTypeIds
Description copied from interface:DynamicStubSimilar to ObjectImpl._ids- Specified by:
getTypeIdsin interfaceDynamicStub
-
connect
Description copied from interface:DynamicStubConnect this dynamic stub to an ORB. Just as in standard RMI-IIOP, this is required after a dynamic stub is deserialized from an ObjectInputStream. It is not needed when unmarshalling from a org.omg.CORBA.portable.InputStream.- Specified by:
connectin interfaceDynamicStub- Throws:
RemoteException
-
isLocal
public boolean isLocal()- Specified by:
isLocalin interfaceDynamicStub
-
request
- Specified by:
requestin interfaceDynamicStub
-
_is_a
Description copied from interface:ObjectChecks whether this object is an instance of a class that implements the given interface. -
_is_equivalent
Description copied from interface:ObjectDetermines whether the two object references are equivalent, so far as the ORB can easily determine. Two object references are equivalent if they are identical. Two distinct object references which in fact refer to the same object are also equivalent. However, ORBs are not required to attempt determination of whether two distinct object references refer to the same object, since such determination could be impractically expensive.- Specified by:
_is_equivalentin interfaceObject- Parameters:
other- the other object reference with which to check for equivalence- Returns:
trueif this object reference is known to be equivalent to the given object reference. Note thatfalseindicates only that the two object references are distinct, not necessarily that they reference distinct objects.
-
_non_existent
public boolean _non_existent()Description copied from interface:ObjectDetermines whether the server object for this object reference has been destroyed.- Specified by:
_non_existentin interfaceObject- Returns:
trueif the ORB knows authoritatively that the server object does not exist;falseotherwise
-
_hash
public int _hash(int maximum) Description copied from interface:ObjectReturns an ORB-internal identifier for this object reference. This is a hash identifier, which does not change during the lifetime of the object reference, and so neither will any hash function of that identifier change. The value returned is not guaranteed to be unique; in other words, another object reference may have the same hash value. If two object references hash differently, then they are distinct object references; however, both may still refer to the same CORBA object. -
_duplicate
Description copied from interface:ObjectReturns a duplicate of this CORBA object reference. The server object implementation is not involved in creating the duplicate, and the implementation cannot distinguish whether the original object reference or a duplicate was used to make a request.Note that this method is not very useful in the Java platform, since memory management is handled by the VM. It is included for compliance with the CORBA APIs.
The method
_duplicatemay return this object reference itself.- Specified by:
_duplicatein interfaceObject- Returns:
- a duplicate of this object reference or this object reference itself
-
_release
public void _release()Description copied from interface:ObjectSignals that the caller is done using this object reference, so internal ORB resources associated with this object reference can be released. Note that the object implementation is not involved in this operation, and other references to the same object are not affected. -
_get_interface_def
Description copied from interface:ObjectObtains anInterfaceDeffor the object implementation referenced by this object reference. TheInterfaceDefobject may be used to introspect on the methods, attributes, and other type information for the object referred to by this object reference.- Specified by:
_get_interface_defin interfaceObject- Returns:
- the
InterfaceDefobject in the Interface Repository which provides type information about the object referred to by this object reference
-
_request
Description copied from interface:ObjectCreates aRequestinstance for use in the Dynamic Invocation Interface. -
_create_request
Description copied from interface:ObjectCreates aRequestinstance initialized with the given context, method name, list of arguments, and container for the method's return value.- Specified by:
_create_requestin interfaceObject- Parameters:
ctx- aContextobject containing a list of propertiesoperation- the name of the method to be invokedarg_list- anNVListcontaining the actual arguments to the method being invokedresult- aNamedValueobject to serve as a container for the method's return value- Returns:
- the newly-created
Requestobject - See Also:
-
_create_request
public Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exclist, ContextList ctxlist) Description copied from interface:ObjectCreates aRequestinstance initialized with the given context, method name, list of arguments, container for the method's return value, list of possible exceptions, and list of context strings needing to be resolved.- Specified by:
_create_requestin interfaceObject- Parameters:
ctx- aContextobject containing a list of propertiesoperation- the name of the method to be invokedarg_list- anNVListcontaining the actual arguments to the method being invokedresult- aNamedValueobject to serve as a container for the method's return valueexclist- anExceptionListobject containing a list of possible exceptions the method can throwctxlist- aContextListobject containing a list of context strings that need to be resolved and sent with theRequestinstance- Returns:
- the newly-created
Requestobject - See Also:
-
_get_policy
Description copied from interface:ObjectReturns thePolicyobject of the specified type which applies to this object.- Specified by:
_get_policyin interfaceObject- Parameters:
policy_type- the type of policy to be obtained- Returns:
- A
Policyobject of the type specified by the policy_type parameter
-
_get_domain_managers
Description copied from interface:ObjectRetrieves theDomainManagersof this object. This allows administration services (and applications) to retrieve the domain managers, and hence the security and other policies applicable to individual objects that are members of the domain.- Specified by:
_get_domain_managersin interfaceObject- Returns:
- the list of immediately enclosing domain managers of this object. At least one domain manager is always returned in the list since by default each object is associated with at least one domain manager at creation.
-
_set_policy_override
Description copied from interface:ObjectReturns a newObjectwith the given policies either replacing any existing policies in thisObjector with the given policies added to the existing ones, depending on the value of the givenSetOverrideTypeobject.- Specified by:
_set_policy_overridein interfaceObject- Parameters:
policies- an array ofPolicyobjects containing the policies to be added or to be used as replacementsset_add- eitherSetOverrideType.SET_OVERRIDE, indicating that the given policies will replace any existing ones, orSetOverrideType.ADD_OVERRIDE, indicating that the given policies should be added to any existing ones- Returns:
- a new
Objectwith the given policies replacing or added to those in thisObject
-