org.omg.CORBA
Interface Object

All Known Subinterfaces:
AdapterActivator sample code for org.omg.PortableServer.AdapterActivator definition code for org.omg.PortableServer.AdapterActivator , BindingIterator sample code for org.omg.CosNaming.BindingIterator definition code for org.omg.CosNaming.BindingIterator , ClientRequestInfo sample code for org.omg.PortableInterceptor.ClientRequestInfo definition code for org.omg.PortableInterceptor.ClientRequestInfo , ClientRequestInterceptor sample code for org.omg.PortableInterceptor.ClientRequestInterceptor definition code for org.omg.PortableInterceptor.ClientRequestInterceptor , Codec sample code for org.omg.IOP.Codec definition code for org.omg.IOP.Codec , CodecFactory sample code for org.omg.IOP.CodecFactory definition code for org.omg.IOP.CodecFactory , Current sample code for org.omg.CORBA.Current definition code for org.omg.CORBA.Current , Current sample code for org.omg.PortableInterceptor.Current definition code for org.omg.PortableInterceptor.Current , Current sample code for org.omg.PortableServer.Current definition code for org.omg.PortableServer.Current , DomainManager sample code for org.omg.CORBA.DomainManager definition code for org.omg.CORBA.DomainManager , DynAny sample code for org.omg.CORBA.DynAny definition code for org.omg.CORBA.DynAny , DynAny sample code for org.omg.DynamicAny.DynAny definition code for org.omg.DynamicAny.DynAny , DynAnyFactory sample code for org.omg.DynamicAny.DynAnyFactory definition code for org.omg.DynamicAny.DynAnyFactory , DynArray sample code for org.omg.CORBA.DynArray definition code for org.omg.CORBA.DynArray , DynArray sample code for org.omg.DynamicAny.DynArray definition code for org.omg.DynamicAny.DynArray , DynEnum sample code for org.omg.CORBA.DynEnum definition code for org.omg.CORBA.DynEnum , DynEnum sample code for org.omg.DynamicAny.DynEnum definition code for org.omg.DynamicAny.DynEnum , DynFixed sample code for org.omg.CORBA.DynFixed definition code for org.omg.CORBA.DynFixed , DynFixed sample code for org.omg.DynamicAny.DynFixed definition code for org.omg.DynamicAny.DynFixed , DynSequence sample code for org.omg.CORBA.DynSequence definition code for org.omg.CORBA.DynSequence , DynSequence sample code for org.omg.DynamicAny.DynSequence definition code for org.omg.DynamicAny.DynSequence , DynStruct sample code for org.omg.CORBA.DynStruct definition code for org.omg.CORBA.DynStruct , DynStruct sample code for org.omg.DynamicAny.DynStruct definition code for org.omg.DynamicAny.DynStruct , DynUnion sample code for org.omg.CORBA.DynUnion definition code for org.omg.CORBA.DynUnion , DynUnion sample code for org.omg.DynamicAny.DynUnion definition code for org.omg.DynamicAny.DynUnion , DynValue sample code for org.omg.CORBA.DynValue definition code for org.omg.CORBA.DynValue , DynValue sample code for org.omg.DynamicAny.DynValue definition code for org.omg.DynamicAny.DynValue , DynValueBox sample code for org.omg.DynamicAny.DynValueBox definition code for org.omg.DynamicAny.DynValueBox , DynValueCommon sample code for org.omg.DynamicAny.DynValueCommon definition code for org.omg.DynamicAny.DynValueCommon , IdAssignmentPolicy sample code for org.omg.PortableServer.IdAssignmentPolicy definition code for org.omg.PortableServer.IdAssignmentPolicy , IDLType sample code for org.omg.CORBA.IDLType definition code for org.omg.CORBA.IDLType , IdUniquenessPolicy sample code for org.omg.PortableServer.IdUniquenessPolicy definition code for org.omg.PortableServer.IdUniquenessPolicy , ImplicitActivationPolicy sample code for org.omg.PortableServer.ImplicitActivationPolicy definition code for org.omg.PortableServer.ImplicitActivationPolicy , Interceptor sample code for org.omg.PortableInterceptor.Interceptor definition code for org.omg.PortableInterceptor.Interceptor , IORInfo sample code for org.omg.PortableInterceptor.IORInfo definition code for org.omg.PortableInterceptor.IORInfo , IORInterceptor sample code for org.omg.PortableInterceptor.IORInterceptor definition code for org.omg.PortableInterceptor.IORInterceptor , IORInterceptor_3_0 sample code for org.omg.PortableInterceptor.IORInterceptor_3_0 definition code for org.omg.PortableInterceptor.IORInterceptor_3_0 , IRObject sample code for org.omg.CORBA.IRObject definition code for org.omg.CORBA.IRObject , LifespanPolicy sample code for org.omg.PortableServer.LifespanPolicy definition code for org.omg.PortableServer.LifespanPolicy , NamingContext sample code for org.omg.CosNaming.NamingContext definition code for org.omg.CosNaming.NamingContext , NamingContextExt sample code for org.omg.CosNaming.NamingContextExt definition code for org.omg.CosNaming.NamingContextExt , ORBInitializer sample code for org.omg.PortableInterceptor.ORBInitializer definition code for org.omg.PortableInterceptor.ORBInitializer , ORBInitInfo sample code for org.omg.PortableInterceptor.ORBInitInfo definition code for org.omg.PortableInterceptor.ORBInitInfo , POA sample code for org.omg.PortableServer.POA definition code for org.omg.PortableServer.POA , POAManager sample code for org.omg.PortableServer.POAManager definition code for org.omg.PortableServer.POAManager , Policy sample code for org.omg.CORBA.Policy definition code for org.omg.CORBA.Policy , PolicyFactory sample code for org.omg.PortableInterceptor.PolicyFactory definition code for org.omg.PortableInterceptor.PolicyFactory , RequestInfo sample code for org.omg.PortableInterceptor.RequestInfo definition code for org.omg.PortableInterceptor.RequestInfo , RequestProcessingPolicy sample code for org.omg.PortableServer.RequestProcessingPolicy definition code for org.omg.PortableServer.RequestProcessingPolicy , RunTime sample code for org.omg.SendingContext.RunTime definition code for org.omg.SendingContext.RunTime , ServantActivator sample code for org.omg.PortableServer.ServantActivator definition code for org.omg.PortableServer.ServantActivator , ServantLocator sample code for org.omg.PortableServer.ServantLocator definition code for org.omg.PortableServer.ServantLocator , ServantManager sample code for org.omg.PortableServer.ServantManager definition code for org.omg.PortableServer.ServantManager , ServantRetentionPolicy sample code for org.omg.PortableServer.ServantRetentionPolicy definition code for org.omg.PortableServer.ServantRetentionPolicy , ServerRequestInfo sample code for org.omg.PortableInterceptor.ServerRequestInfo definition code for org.omg.PortableInterceptor.ServerRequestInfo , ServerRequestInterceptor sample code for org.omg.PortableInterceptor.ServerRequestInterceptor definition code for org.omg.PortableInterceptor.ServerRequestInterceptor , ThreadPolicy sample code for org.omg.PortableServer.ThreadPolicy definition code for org.omg.PortableServer.ThreadPolicy
All Known Implementing Classes:
_BindingIteratorImplBase sample code for org.omg.CosNaming._BindingIteratorImplBase definition code for org.omg.CosNaming._BindingIteratorImplBase , _BindingIteratorStub sample code for org.omg.CosNaming._BindingIteratorStub definition code for org.omg.CosNaming._BindingIteratorStub , _DynAnyFactoryStub sample code for org.omg.DynamicAny._DynAnyFactoryStub definition code for org.omg.DynamicAny._DynAnyFactoryStub , _DynAnyStub sample code for org.omg.DynamicAny._DynAnyStub definition code for org.omg.DynamicAny._DynAnyStub , _DynArrayStub sample code for org.omg.DynamicAny._DynArrayStub definition code for org.omg.DynamicAny._DynArrayStub , _DynEnumStub sample code for org.omg.DynamicAny._DynEnumStub definition code for org.omg.DynamicAny._DynEnumStub , _DynFixedStub sample code for org.omg.DynamicAny._DynFixedStub definition code for org.omg.DynamicAny._DynFixedStub , _DynSequenceStub sample code for org.omg.DynamicAny._DynSequenceStub definition code for org.omg.DynamicAny._DynSequenceStub , _DynStructStub sample code for org.omg.DynamicAny._DynStructStub definition code for org.omg.DynamicAny._DynStructStub , _DynUnionStub sample code for org.omg.DynamicAny._DynUnionStub definition code for org.omg.DynamicAny._DynUnionStub , _DynValueStub sample code for org.omg.DynamicAny._DynValueStub definition code for org.omg.DynamicAny._DynValueStub , _IDLTypeStub sample code for org.omg.CORBA._IDLTypeStub definition code for org.omg.CORBA._IDLTypeStub , _NamingContextExtStub sample code for org.omg.CosNaming._NamingContextExtStub definition code for org.omg.CosNaming._NamingContextExtStub , _NamingContextImplBase sample code for org.omg.CosNaming._NamingContextImplBase definition code for org.omg.CosNaming._NamingContextImplBase , _NamingContextStub sample code for org.omg.CosNaming._NamingContextStub definition code for org.omg.CosNaming._NamingContextStub , _PolicyStub sample code for org.omg.CORBA._PolicyStub definition code for org.omg.CORBA._PolicyStub , _Remote_Stub sample code for org.omg.stub.java.rmi._Remote_Stub definition code for org.omg.stub.java.rmi._Remote_Stub , _ServantActivatorStub sample code for org.omg.PortableServer._ServantActivatorStub definition code for org.omg.PortableServer._ServantActivatorStub , _ServantLocatorStub sample code for org.omg.PortableServer._ServantLocatorStub definition code for org.omg.PortableServer._ServantLocatorStub , DynamicImplementation sample code for org.omg.CORBA.DynamicImplementation definition code for org.omg.CORBA.DynamicImplementation , LocalObject sample code for org.omg.CORBA.LocalObject definition code for org.omg.CORBA.LocalObject , ObjectImpl sample code for org.omg.CORBA.portable.ObjectImpl definition code for org.omg.CORBA.portable.ObjectImpl , ObjectImpl sample code for org.omg.CORBA_2_3.portable.ObjectImpl definition code for org.omg.CORBA_2_3.portable.ObjectImpl , Stub sample code for javax.rmi.CORBA.Stub definition code for javax.rmi.CORBA.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 to java.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 class org.omg.CORBA.portable.ObjectImpl, which is the base class for stubs and object implementations.

See Also:
ObjectImpl sample code for org.omg.CORBA.portable.ObjectImpl definition code for org.omg.CORBA.portable.ObjectImpl

Method Summary
 Request sample code for org.omg.CORBA.Request definition code for org.omg.CORBA.Request _create_request sample code for org.omg.CORBA.Object._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue) definition code for org.omg.CORBA.Object._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue) (Context sample code for org.omg.CORBA.Context definition code for org.omg.CORBA.Context  ctx, String sample code for java.lang.String definition code for java.lang.String  operation, NVList sample code for org.omg.CORBA.NVList definition code for org.omg.CORBA.NVList  arg_list, NamedValue sample code for org.omg.CORBA.NamedValue definition code for org.omg.CORBA.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 sample code for org.omg.CORBA.Request definition code for org.omg.CORBA.Request _create_request sample code for org.omg.CORBA.Object._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList) definition code for org.omg.CORBA.Object._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList) (Context sample code for org.omg.CORBA.Context definition code for org.omg.CORBA.Context  ctx, String sample code for java.lang.String definition code for java.lang.String  operation, NVList sample code for org.omg.CORBA.NVList definition code for org.omg.CORBA.NVList  arg_list, NamedValue sample code for org.omg.CORBA.NamedValue definition code for org.omg.CORBA.NamedValue  result, ExceptionList sample code for org.omg.CORBA.ExceptionList definition code for org.omg.CORBA.ExceptionList  exclist, ContextList sample code for org.omg.CORBA.ContextList definition code for org.omg.CORBA.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 sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object _duplicate sample code for org.omg.CORBA.Object._duplicate() definition code for org.omg.CORBA.Object._duplicate() ()
          Returns a duplicate of this CORBA object reference.
 DomainManager sample code for org.omg.CORBA.DomainManager definition code for org.omg.CORBA.DomainManager [] _get_domain_managers sample code for org.omg.CORBA.Object._get_domain_managers() definition code for org.omg.CORBA.Object._get_domain_managers() ()
          Retrieves the DomainManagers of this object.
 Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object _get_interface_def sample code for org.omg.CORBA.Object._get_interface_def() definition code for org.omg.CORBA.Object._get_interface_def() ()
          Obtains an InterfaceDef for the object implementation referenced by this object reference.
 Policy sample code for org.omg.CORBA.Policy definition code for org.omg.CORBA.Policy _get_policy sample code for org.omg.CORBA.Object._get_policy(int) definition code for org.omg.CORBA.Object._get_policy(int) (int policy_type)
          Returns the Policy object of the specified type which applies to this object.
 int _hash sample code for org.omg.CORBA.Object._hash(int) definition code for org.omg.CORBA.Object._hash(int) (int maximum)
          Returns an ORB-internal identifier for this object reference.
 boolean _is_a sample code for org.omg.CORBA.Object._is_a(java.lang.String) definition code for org.omg.CORBA.Object._is_a(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  repositoryIdentifier)
          Checks whether this object is an instance of a class that implements the given interface.
 boolean _is_equivalent sample code for org.omg.CORBA.Object._is_equivalent(org.omg.CORBA.Object) definition code for org.omg.CORBA.Object._is_equivalent(org.omg.CORBA.Object) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  other)
          Determines whether the two object references are equivalent, so far as the ORB can easily determine.
 boolean _non_existent sample code for org.omg.CORBA.Object._non_existent() definition code for org.omg.CORBA.Object._non_existent() ()
          Determines whether the server object for this object reference has been destroyed.
 void _release sample code for org.omg.CORBA.Object._release() definition code for org.omg.CORBA.Object._release() ()
          Signals that the caller is done using this object reference, so internal ORB resources associated with this object reference can be released.
 Request sample code for org.omg.CORBA.Request definition code for org.omg.CORBA.Request _request sample code for org.omg.CORBA.Object._request(java.lang.String) definition code for org.omg.CORBA.Object._request(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  operation)
          Creates a Request instance for use in the Dynamic Invocation Interface.
 Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object _set_policy_override sample code for org.omg.CORBA.Object._set_policy_override(org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType) definition code for org.omg.CORBA.Object._set_policy_override(org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType) (Policy sample code for org.omg.CORBA.Policy definition code for org.omg.CORBA.Policy [] policies, SetOverrideType sample code for org.omg.CORBA.SetOverrideType definition code for org.omg.CORBA.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.
 

Method Detail

_is_a sample code for org.omg.CORBA.Object._is_a(java.lang.String) definition code for org.omg.CORBA.Object._is_a(java.lang.String)

boolean _is_a(String sample code for java.lang.String definition code for java.lang.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 sample code for org.omg.CORBA.Object._is_equivalent(org.omg.CORBA.Object) definition code for org.omg.CORBA.Object._is_equivalent(org.omg.CORBA.Object)

boolean _is_equivalent(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.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 that false indicates only that the two object references are distinct, not necessarily that they reference distinct objects.

_non_existent sample code for org.omg.CORBA.Object._non_existent() definition code for org.omg.CORBA.Object._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 sample code for org.omg.CORBA.Object._hash(int) definition code for org.omg.CORBA.Object._hash(int)

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 sample code for org.omg.CORBA.Object._duplicate() definition code for org.omg.CORBA.Object._duplicate()

Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.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 sample code for org.omg.CORBA.Object._release() definition code for org.omg.CORBA.Object._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 sample code for org.omg.CORBA.Object._get_interface_def() definition code for org.omg.CORBA.Object._get_interface_def()

Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  _get_interface_def()
Obtains an 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.

Returns:
the InterfaceDef object in the Interface Repository which provides type information about the object referred to by this object reference

_request sample code for org.omg.CORBA.Object._request(java.lang.String) definition code for org.omg.CORBA.Object._request(java.lang.String)

Request sample code for org.omg.CORBA.Request definition code for org.omg.CORBA.Request  _request(String sample code for java.lang.String definition code for java.lang.String  operation)
Creates a Request instance for use in the Dynamic Invocation Interface.

Parameters:
operation - the name of the method to be invoked using the Request instance
Returns:
the newly-created Request instance

_create_request sample code for org.omg.CORBA.Object._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue) definition code for org.omg.CORBA.Object._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue)

Request sample code for org.omg.CORBA.Request definition code for org.omg.CORBA.Request  _create_request(Context sample code for org.omg.CORBA.Context definition code for org.omg.CORBA.Context  ctx,
                        String sample code for java.lang.String definition code for java.lang.String  operation,
                        NVList sample code for org.omg.CORBA.NVList definition code for org.omg.CORBA.NVList  arg_list,
                        NamedValue sample code for org.omg.CORBA.NamedValue definition code for org.omg.CORBA.NamedValue  result)
Creates a Request instance initialized with the given context, method name, list of arguments, and container for the method's return value.

Parameters:
ctx - a Context object containing a list of properties
operation - the name of the method to be invoked
arg_list - an NVList containing the actual arguments to the method being invoked
result - a NamedValue object to serve as a container for the method's return value
Returns:
the newly-created Request object
See Also:
Request sample code for org.omg.CORBA.Request definition code for org.omg.CORBA.Request , NVList sample code for org.omg.CORBA.NVList definition code for org.omg.CORBA.NVList , NamedValue sample code for org.omg.CORBA.NamedValue definition code for org.omg.CORBA.NamedValue

_create_request sample code for org.omg.CORBA.Object._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList) definition code for org.omg.CORBA.Object._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList)

Request sample code for org.omg.CORBA.Request definition code for org.omg.CORBA.Request  _create_request(Context sample code for org.omg.CORBA.Context definition code for org.omg.CORBA.Context  ctx,
                        String sample code for java.lang.String definition code for java.lang.String  operation,
                        NVList sample code for org.omg.CORBA.NVList definition code for org.omg.CORBA.NVList  arg_list,
                        NamedValue sample code for org.omg.CORBA.NamedValue definition code for org.omg.CORBA.NamedValue  result,
                        ExceptionList sample code for org.omg.CORBA.ExceptionList definition code for org.omg.CORBA.ExceptionList  exclist,
                        ContextList sample code for org.omg.CORBA.ContextList definition code for org.omg.CORBA.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.

Parameters:
ctx - a Context object containing a list of properties
operation - the name of the method to be invoked
arg_list - an NVList containing the actual arguments to the method being invoked
result - a NamedValue object to serve as a container for the method's return value
exclist - an ExceptionList object containing a list of possible exceptions the method can throw
ctxlist - a ContextList object containing a list of context strings that need to be resolved and sent with the Request instance
Returns:
the newly-created Request object
See Also:
Request sample code for org.omg.CORBA.Request definition code for org.omg.CORBA.Request , NVList sample code for org.omg.CORBA.NVList definition code for org.omg.CORBA.NVList , NamedValue sample code for org.omg.CORBA.NamedValue definition code for org.omg.CORBA.NamedValue , ExceptionList sample code for org.omg.CORBA.ExceptionList definition code for org.omg.CORBA.ExceptionList , ContextList sample code for org.omg.CORBA.ContextList definition code for org.omg.CORBA.ContextList

_get_policy sample code for org.omg.CORBA.Object._get_policy(int) definition code for org.omg.CORBA.Object._get_policy(int)

Policy sample code for org.omg.CORBA.Policy definition code for org.omg.CORBA.Policy  _get_policy(int policy_type)
Returns the Policy 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 sample code for org.omg.CORBA.BAD_PARAM definition code for org.omg.CORBA.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 sample code for org.omg.CORBA.Object._get_domain_managers() definition code for org.omg.CORBA.Object._get_domain_managers()

DomainManager sample code for org.omg.CORBA.DomainManager definition code for org.omg.CORBA.DomainManager [] _get_domain_managers()
Retrieves the 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.

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 sample code for org.omg.CORBA.Object._set_policy_override(org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType) definition code for org.omg.CORBA.Object._set_policy_override(org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType)

Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  _set_policy_override(Policy sample code for org.omg.CORBA.Policy definition code for org.omg.CORBA.Policy [] policies,
                            SetOverrideType sample code for org.omg.CORBA.SetOverrideType definition code for org.omg.CORBA.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.

Parameters:
policies - an array of Policy objects containing the policies to be added or to be used as replacements
set_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 ones
Returns:
a new Object with the given policies replacing or added to those in this Object