|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
org.omg.CORBA.portable.ObjectImpl

, _DynAnyFactoryStub
, _DynAnyStub
, _DynArrayStub
, _DynEnumStub
, _DynFixedStub
, _DynSequenceStub
, _DynStructStub
, _DynUnionStub
, _DynValueStub
, _IDLTypeStub
, _NamingContextExtStub
, _NamingContextStub
, _PolicyStub
, _ServantActivatorStub
, _ServantLocatorStub
, DynamicImplementation
, ObjectImpl

public abstract class 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.
| Constructor Summary | |
|---|---|
ObjectImpl
|
|
| Method Summary | |
|---|---|
Request |
_create_request
Creates a Request object that contains the given context,
method, argument list, and container for the result. |
Request |
_create_request
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. |
Object |
_duplicate
Returns a duplicate of this ObjectImpl object. |
Delegate |
_get_delegate
Retrieves the reference to the vendor-specific Delegate
object to which this ObjectImpl object delegates all
methods invoked on it. |
DomainManager |
_get_domain_managers
Retrieves a list of the domain managers for this ObjectImpl object. |
Object |
_get_interface_def
Retrieves the interface definition for this ObjectImpl
object. |
Policy |
_get_policy
Retrieves the Policy object for this
ObjectImpl object that has the given
policy type. |
int |
_hash
Retrieves the hash code that serves as an ORB-internal identifier for this ObjectImpl object. |
abstract String |
_ids
Retrieves a string array containing the repository identifiers supported by this ObjectImpl object. |
InputStream |
_invoke
Invokes an operation and returns an InputStream
object for reading the response. |
boolean |
_is_a
Checks whether the object identified by the given repository identifier is an ObjectImpl object. |
boolean |
_is_equivalent
Checks whether the the given ObjectImpl object is
equivalent to this ObjectImpl object. |
boolean |
_is_local
Checks whether this ObjectImpl object is implemented
by a local servant. |
boolean |
_non_existent
Checks whether the server object for this ObjectImpl
object has been destroyed. |
ORB |
_orb
Returns a reference to the ORB associated with this object and its delegate. |
void |
_release
Releases the resources associated with this ObjectImpl object. |
void |
_releaseReply
Releases the given reply stream back to the ORB when unmarshalling has completed after a call to the method _invoke. |
Request |
_request
Creates a Request object containing the given method
that can be used with the Dynamic Invocation Interface. |
OutputStream |
_request
Returns an OutputStream object to use for marshalling
the arguments of the given method. |
void |
_servant_postinvoke
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. |
ServantObject |
_servant_preinvoke
Returns a Java reference to the local servant that should be used for sending a request for the method specified. |
void |
_set_delegate
Sets the Delegate for this ObjectImpl instance to the given
Delegate object. |
Object |
_set_policy_override
Sets this ObjectImpl object's override type for
the given policies to the given instance of
SetOverrideType. |
boolean |
equals
Compares this ObjectImpl object with the given one
for equality. |
int |
hashCode
Returns the hash code for this ObjectImpl object. |
String |
toString
Returns a String object that represents this
ObjectImpl object. |
Methods inherited from class java.lang.Object ![]() |
|---|
clone |
| Constructor Detail |
|---|

public ObjectImpl()
| Method Detail |
|---|

public Delegate![]()
![]()
_get_delegate()
Delegate
object to which this ObjectImpl object delegates all
methods invoked on it.
BAD_OPERATION

- if the delegate has not been set_set_delegate(org.omg.CORBA.portable.Delegate)


public void _set_delegate(Delegate![]()
![]()
delegate)
ObjectImpl instance to the given
Delegate object. All method invocations on this
ObjectImpl object will be forwarded to this delegate.
delegate - the Delegate instance to which
all method calls on this ObjectImpl object
will be delegated; may be implemented by a third-party ORB_get_delegate()


public abstract String![]()
![]()
[] _ids()
ObjectImpl object. For example,
for a stub, this method returns information about all the
interfaces supported by the stub.
ObjectImpl instance

public Object![]()
![]()
_duplicate()
ObjectImpl object.
_duplicate

in interface Object

orb.omg.CORBA.Object object that is
a duplicate of this object

public void _release()
ObjectImpl object.
_release

in interface Object


public boolean _is_a(String![]()
![]()
repository_id)
ObjectImpl object.
_is_a

in interface Object

repository_id - a String object with the repository
identifier to check
true if the object identified by the given
repository id is an instance of ObjectImpl;
false otherwise

public boolean _is_equivalent(Object![]()
![]()
that)
ObjectImpl object is
equivalent to this ObjectImpl object.
_is_equivalent

in interface Object

that - an instance of ObjectImpl to compare with
this ObjectImpl object
true if the given object is equivalent
to this ObjectImpl object;
false otherwise

public boolean _non_existent()
ObjectImpl
object has been destroyed.
_non_existent

in interface Object

true if the ORB knows authoritatively that the
server object does not exist; false otherwise

public int _hash(int maximum)
ObjectImpl object.
_hash

in interface Object

maximum - an int indicating the upper bound on the hash
value returned by the ORB
int representing the hash code for this
ObjectImpl object

public Request![]()
![]()
_request(String
![]()
![]()
operation)
Request object containing the given method
that can be used with the Dynamic Invocation Interface.
_request

in interface Object

operation - the method to be invoked by the new Request
object
Request object initialized with the
given method

public Request![]()
![]()
_create_request(Context
![]()
![]()
ctx, String
![]()
![]()
operation, NVList
![]()
![]()
arg_list, NamedValue
![]()
![]()
result)
Request object that contains the given context,
method, argument list, and container for the result.
_create_request

in interface Object

ctx - the Context for the requestoperation - the method that the new Request
object will invokearg_list - the arguments for the method; an NVList
in which each argument is a NamedValue objectresult - a NamedValue object to be used for
returning the result of executing the request's method
Request object initialized with the
given context, method, argument list, and container for the
return valueRequest
,
NVList
,
NamedValue


public Request![]()
![]()
_create_request(Context
![]()
![]()
ctx, String
![]()
![]()
operation, NVList
![]()
![]()
arg_list, NamedValue
![]()
![]()
result, ExceptionList
![]()
![]()
exceptions, ContextList
![]()
![]()
contexts)
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.
_create_request

in interface Object

ctx - the Context object that contains the
context strings that must be resolved before they are
sent along with the requestoperation - the method that the new Request
object will invokearg_list - the arguments for the method; an NVList
in which each argument is a NamedValue objectresult - a NamedValue object to be used for
returning the result of executing the request's methodexceptions - a list of the exceptions that the given method
throwscontexts - a list of the properties that are needed to
resolve the contexts in ctx; the strings in
contexts are used as arguments to the method
Context.get_values,
which returns the value associated with the given property
Request object initialized with the
given context strings to resolve, method, argument list,
container for the result, exceptions, and list of property
names to be used in resolving the context stringsRequest
,
NVList
,
NamedValue