-
- All Known Subinterfaces:
- AdapterActivator, BindingIterator, ClientRequestInfo, ClientRequestInterceptor, Codec, CodecFactory, Current, Current, Current, DomainManager, DynAny, DynAny, DynAnyFactory, DynArray, DynArray, DynEnum, DynEnum, DynFixed, DynFixed, DynSequence, DynSequence, DynStruct, DynStruct, DynUnion, DynUnion, DynValue, DynValue, DynValueBox, DynValueCommon, IdAssignmentPolicy, IDLType, IdUniquenessPolicy, ImplicitActivationPolicy, Interceptor, IORInfo, IORInterceptor, IORInterceptor_3_0, IRObject, LifespanPolicy, NamingContext, NamingContextExt, ORBInitializer, ORBInitInfo, POA, POAManager, Policy, PolicyFactory, RequestInfo, RequestProcessingPolicy, RunTime, ServantActivator, ServantLocator, ServantManager, ServantRetentionPolicy, ServerRequestInfo, ServerRequestInterceptor, ThreadPolicy
- All Known Implementing Classes:
- _BindingIteratorImplBase, _BindingIteratorStub, _DynAnyFactoryStub, _DynAnyStub, _DynArrayStub, _DynEnumStub, _DynFixedStub, _DynSequenceStub, _DynStructStub, _DynUnionStub, _DynValueStub, _IDLTypeStub, _NamingContextExtStub, _NamingContextImplBase, _NamingContextStub, _PolicyStub, _Remote_Stub, _ServantActivatorStub, _ServantLocatorStub, DynamicImplementation, LocalObject, ObjectImpl, ObjectImpl, Stub
public interface Object
The definition for a CORBA object reference.A CORBA object reference is a handle for a particular CORBA object implemented by a server. A CORBA object reference identifies the same CORBA object each time the reference is used to invoke a method on the object. A CORBA object may have multiple, distinct object references.
The
org.omg.CORBA.Object
interface is the root of the inheritance hierarchy for all CORBA object references in the Java programming language, analogous tojava.rmi.Remote
for RMI remote objects.A CORBA object may be either local or remote. If it is a local object (that is, running in the same VM as the client), invocations may be directly serviced by the object instance, and the object reference could point to the actual instance of the object implementation class. If a CORBA object is a remote object (that is, running in a different VM from the client), the object reference points to a stub (proxy) which uses the ORB machinery to make a remote invocation on the server where the object implementation resides.
Default implementations of the methods in the interface
org.omg.CORBA.Object
are provided in the classorg.omg.CORBA.portable.ObjectImpl
, which is the base class for stubs and object implementations.- See Also:
ObjectImpl
-
-
Method Summary
Methods Modifier and Type Method and Description Request
_create_request(Context ctx, String operation, NVList arg_list, NamedValue result)
Creates aRequest
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 aRequest
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 theDomainManagers
of this object.Object
_get_interface_def()
Obtains anInterfaceDef
for the object implementation referenced by this object reference.Policy
_get_policy(int policy_type)
Returns thePolicy
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 aRequest
instance for use in the Dynamic Invocation Interface.Object
_set_policy_override(Policy[] policies, SetOverrideType set_add)
Returns a newObject
with the given policies either replacing any existing policies in thisObject
or with the given policies added to the existing ones, depending on the value of the givenSetOverrideType
object.
-
-
-
Method Detail
-
_is_a
boolean _is_a(String repositoryIdentifier)
Checks whether this object is an instance of a class that implements the given interface.- Parameters:
repositoryIdentifier
- the interface to check against- Returns:
true
if this object reference is an instance of a class that implements the interface;false
otherwise
-
_is_equivalent
boolean _is_equivalent(Object other)
Determines 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.- Parameters:
other
- the other object reference with which to check for equivalence- Returns:
true
if this object reference is known to be equivalent to the given object reference. Note thatfalse
indicates only that the two object references are distinct, not necessarily that they reference distinct objects.
-
_non_existent
boolean _non_existent()
Determines whether the server object for this object reference has been destroyed.- Returns:
true
if the ORB knows authoritatively that the server object does not exist;false
otherwise
-
_hash
int _hash(int maximum)
Returns 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.- Parameters:
maximum
- the upper bound on the hash value returned by the ORB- Returns:
- the ORB-internal hash identifier for this object reference
-
_duplicate
Object _duplicate()
Returns 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
_duplicate
may return this object reference itself.- Returns:
- a duplicate of this object reference or this object reference itself
-
_release
void _release()
Signals 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
Object _get_interface_def()
Obtains anInterfaceDef
for the object implementation referenced by this object reference. TheInterfaceDef
object may be used to introspect on the methods, attributes, and other type information for the object referred to by this object reference.- Returns:
- the
InterfaceDef
object in the Interface Repository which provides type information about the object referred to by this object reference
-
_request
Request _request(String operation)
Creates aRequest
instance for use in the Dynamic Invocation Interface.- Parameters:
operation
- the name of the method to be invoked using theRequest
instance- Returns:
- the newly-created
Request
instance
-
_create_request
Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result)
Creates aRequest
instance initialized with the given context, method name, list of arguments, and container for the method's return value.- Parameters:
ctx
- aContext
object containing a list of propertiesoperation
- the name of the method to be invokedarg_list
- anNVList
containing the actual arguments to the method being invokedresult
- aNamedValue
object to serve as a container for the method's return value- Returns:
- the newly-created
Request
object - See Also:
Request
,NVList
,NamedValue
-
_create_request
Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exclist, ContextList ctxlist)
Creates aRequest
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.- Parameters:
ctx
- aContext
object containing a list of propertiesoperation
- the name of the method to be invokedarg_list
- anNVList
containing the actual arguments to the method being invokedresult
- aNamedValue
object to serve as a container for the method's return valueexclist
- anExceptionList
object containing a list of possible exceptions the method can throwctxlist
- aContextList
object containing a list of context strings that need to be resolved and sent with theRequest
instance- Returns:
- the newly-created
Request
object - See Also:
Request
,NVList
,NamedValue
,ExceptionList
,ContextList
-
_get_policy
Policy _get_policy(int policy_type)
Returns thePolicy
object of the specified type which applies to this object.- Parameters:
policy_type
- the type of policy to be obtained- Returns:
- A
Policy
object of the type specified by the policy_type parameter - Throws:
BAD_PARAM
- when the value of policy type is not valid either because the specified type is not supported by this ORB or because a policy object of that type is not associated with this Object
-
_get_domain_managers
DomainManager[] _get_domain_managers()
Retrieves theDomainManagers
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.- 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
Object _set_policy_override(Policy[] policies, SetOverrideType set_add)
Returns a newObject
with the given policies either replacing any existing policies in thisObject
or with the given policies added to the existing ones, depending on the value of the givenSetOverrideType
object.- Parameters:
policies
- an array ofPolicy
objects 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
Object
with the given policies replacing or added to those in thisObject
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
22/12/2024 15:47:34 Cette version de la page est en cache (à la date du 22/12/2024 15:47:34) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.Document créé le 29/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-org/omg/corba/object.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.