Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omg.CORBA.portable.ObjectImpl
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()
Retrieves the DomainManagers of this object. |
Object |
_get_interface_def()
default implementation of the org.omg.CORBA.Object method. |
Policy |
_get_policy(int policy_type)
Returns the Policy object of the specified type
which applies to this object. |
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)
Indicates whether some other object is "equal to" this one. |
int |
hashCode()
Returns a hash code value for the object. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public ObjectImpl()
Method Detail |
public Delegate _get_delegate()
public void _set_delegate(Delegate delegate)
public abstract String[] _ids()
public Object _duplicate()
public void _release()
public boolean _is_a(String repository_id)
repositoryIdentifier
- the interface to check againsttrue
if this object reference is an instance
of a class that implements the interface;
false
otherwisepublic boolean _is_equivalent(Object that)
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()
true
if the ORB knows authoritatively that the
server object does not exist; false
otherwisepublic int _hash(int maximum)
maximum
- the upper bound on the hash value returned by the ORBpublic Request _request(String operation)
operation
- the name of the method to be invoked using the
Request
instanceRequest
instancepublic Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result)
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 exceptions, ContextList contexts)
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 Object _get_interface_def()
InterfaceDef
object in the Interface Repository
which provides type information about the object referred to by
this object referencepublic ORB _orb()
public Policy _get_policy(int policy_type)
Policy
object of the specified type
which applies to this object.policy_type
- the type of policy to be obtainedPolicy
object of the type specified by
the policy_type parameterpublic DomainManager[] _get_domain_managers()
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.public Object _set_policy_override(Policy[] policies, SetOverrideType set_add)
public boolean _is_local()
public ServantObject _servant_preinvoke(String operation, Class expectedType)
public void _servant_postinvoke(ServantObject servant)
public OutputStream _request(String operation, boolean responseExpected)
public InputStream _invoke(OutputStream output) throws ApplicationException, RemarshalException
public void _releaseReply(InputStream input)
public String toString()
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommendedthat all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public int hashCode()
java.util.Hashtable
.
The general contract of hashCode
is:
hashCode
method on each of
the two objects must produce the same integer result.
Object.equals(java.lang.Object)
method, then calling the hashCode method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hashtables.
As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTM programming language.)
Object.equals(java.lang.Object)
,
Hashtable
public boolean equals(Object obj)
The equals
method implements an equivalence relation:
x
,
x.equals(x)
should return true
.
x
and
y
, x.equals(y)
should return
true
if and only if y.equals(x)
returns
true
.
x
,
y
, and z
, if x.equals(y)
returns true
and y.equals(z)
returns
true
, then x.equals(z)
should return
true
.
x
and y
, multiple invocations of x.equals(y)
consistently return true
or consistently return
false
, provided no information used in
equals
comparisons on the object is modified.
x
,
x.equals(null)
should return false
.
The equals method for class Object
implements
the most discriminating possible equivalence relation on objects;
that is, for any reference values x
and y
,
this method returns true
if and only if x
and
y
refer to the same object (x==y
has the
value true
).
obj
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.Boolean.hashCode()
,
Hashtable
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |