public class StubWrapper extends Object implements DynamicStub
Constructor and Description |
---|
StubWrapper(Object object) |
Modifier and Type | Method and Description |
---|---|
Request |
_create_request(Context ctx,
String operation,
NVList arg_list,
NamedValue result)
Creates a
Request instance initialized with the
given context, method name, list of arguments, and container
for the method's return value. |
Request |
_create_request(Context ctx,
String operation,
NVList arg_list,
NamedValue result,
ExceptionList exclist,
ContextList ctxlist)
Creates a
Request instance 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. |
Object |
_duplicate()
Returns a duplicate of this CORBA object reference.
|
DomainManager[] |
_get_domain_managers()
Retrieves the
DomainManagers of this object. |
Object |
_get_interface_def()
Obtains an
InterfaceDef for the object implementation
referenced by this object reference. |
Policy |
_get_policy(int policy_type)
Returns the
Policy object of the specified type
which applies to this object. |
int |
_hash(int maximum)
Returns an ORB-internal identifier for this object reference.
|
boolean |
_is_a(String repositoryIdentifier)
Checks 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.
|
boolean |
_non_existent()
Determines 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.
|
Request |
_request(String operation)
Creates a
Request instance for use in the
Dynamic Invocation Interface. |
Object |
_set_policy_override(Policy[] policies,
SetOverrideType set_add)
Returns a new
Object with the given policies
either replacing any existing policies in this
Object or with the given policies added
to the existing ones, depending on the value of the
given SetOverrideType object. |
void |
connect(ORB orb)
Connect this dynamic stub to an ORB.
|
Delegate |
getDelegate()
Similar to ObjectImpl._get_delegate
|
ORB |
getORB()
Similar to ObjectImpl._orb()
|
String[] |
getTypeIds()
Similar to ObjectImpl._ids
|
boolean |
isLocal() |
OutputStream |
request(String operation,
boolean responseExpected) |
void |
setDelegate(Delegate delegate)
Similar to ObjectImpl._set_delegate
|
public StubWrapper(Object object)
public void setDelegate(Delegate delegate)
DynamicStub
setDelegate
in interface DynamicStub
public Delegate getDelegate()
DynamicStub
getDelegate
in interface DynamicStub
public ORB getORB()
DynamicStub
getORB
in interface DynamicStub
public String[] getTypeIds()
DynamicStub
getTypeIds
in interface DynamicStub
public void connect(ORB orb) throws RemoteException
DynamicStub
connect
in interface DynamicStub
RemoteException
public boolean isLocal()
isLocal
in interface DynamicStub
public OutputStream request(String operation, boolean responseExpected)
request
in interface DynamicStub
public boolean _is_a(String repositoryIdentifier)
Object
public boolean _is_equivalent(Object other)
Object
_is_equivalent
in interface Object
other
- the other object reference with which to check for equivalencetrue
if this object reference is known to be
equivalent to the given object reference.
Note that false
indicates only that the two
object references are distinct, not necessarily that
they reference distinct objects.public boolean _non_existent()
Object
_non_existent
in interface Object
true
if the ORB knows authoritatively that the
server object does not exist; false
otherwisepublic int _hash(int maximum)
Object
public Object _duplicate()
Object
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 _duplicate
may return this object reference itself.
_duplicate
in interface Object
public void _release()
Object
public Object _get_interface_def()
Object
InterfaceDef
for the object implementation
referenced by this object reference.
The InterfaceDef
object
may be used to introspect on the methods, attributes, and other
type information for the object referred to by this object reference._get_interface_def
in interface Object
InterfaceDef
object in the Interface Repository
which provides type information about the object referred to by
this object referencepublic Request _request(String operation)
Object
Request
instance for use in the
Dynamic Invocation Interface.public Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result)
Object
Request
instance initialized with the
given context, method name, list of arguments, and container
for the method's return value._create_request
in interface Object
ctx
- a Context
object containing
a list of propertiesoperation
- the name of the method to be invokedarg_list
- an NVList
containing the actual arguments
to the method being invokedresult
- a NamedValue
object to serve as a
container for the method's return valueRequest
objectRequest
,
NVList
,
NamedValue
public Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exclist, ContextList ctxlist)
Object
Request
instance 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._create_request
in interface Object
ctx
- a Context
object containing
a list of propertiesoperation
- the name of the method to be invokedarg_list
- an NVList
containing the actual arguments
to the method being invokedresult
- a NamedValue
object to serve as a
container for the method's return valueexclist
- an ExceptionList
object containing a
list of possible exceptions the method can throwctxlist
- a ContextList
object containing a list of
context strings that need to be resolved and sent with the
Request
instanceRequest
objectRequest
,
NVList
,
NamedValue
,
ExceptionList
,
ContextList
public Policy _get_policy(int policy_type)
Object
Policy
object of the specified type
which applies to this object._get_policy
in interface Object
policy_type
- the type of policy to be obtainedPolicy
object of the type specified by
the policy_type parameterpublic DomainManager[] _get_domain_managers()
Object
DomainManagers
of 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._get_domain_managers
in interface Object
public Object _set_policy_override(Policy[] policies, SetOverrideType set_add)
Object
Object
with the given policies
either replacing any existing policies in this
Object
or with the given policies added
to the existing ones, depending on the value of the
given SetOverrideType
object._set_policy_override
in interface Object
policies
- an array of Policy
objects containing
the policies to be added or to be used as replacementsset_add
- either SetOverrideType.SET_OVERRIDE
, indicating
that the given policies will replace any existing ones, or
SetOverrideType.ADD_OVERRIDE
, indicating that
the given policies should be added to any existing onesObject
with the given policies replacing
or added to those in this Object
Copyright © 2021 JBoss by Red Hat. All rights reserved.