Methods Summary |
---|
public byte[] | activate_object(org.omg.PortableServer.Servant p_servant)This operation generates an Object Id and enters
the Object Id and the specified servant in the
Active Object Map.
|
public void | activate_object_with_id(byte[] id, org.omg.PortableServer.Servant p_servant)This operation enters an association between the
specified Object Id and the specified servant in the
Active Object Map.
|
public org.omg.PortableServer.POA | create_POA(java.lang.String adapter_name, org.omg.PortableServer.POAManager a_POAManager, org.omg.CORBA.Policy[] policies)This operation creates a new POA as a child of the
target POA.
|
public org.omg.PortableServer.IdAssignmentPolicy | create_id_assignment_policy(org.omg.PortableServer.IdAssignmentPolicyValue value)These operations each return a reference to a policy
object with the specified value.
|
public org.omg.PortableServer.IdUniquenessPolicy | create_id_uniqueness_policy(org.omg.PortableServer.IdUniquenessPolicyValue value)These operations each return a reference to a policy
object with the specified value.
|
public org.omg.PortableServer.ImplicitActivationPolicy | create_implicit_activation_policy(org.omg.PortableServer.ImplicitActivationPolicyValue value)These operations each return a reference to a policy
object with the specified value.
|
public org.omg.PortableServer.LifespanPolicy | create_lifespan_policy(org.omg.PortableServer.LifespanPolicyValue value)These operations each return a reference to a policy
object with the specified value.
|
public org.omg.CORBA.Object | create_reference(java.lang.String intf)This operation creates an object reference that
encapsulates a POA-generated Object Id value and
the specified interface repository id.
|
public org.omg.CORBA.Object | create_reference_with_id(byte[] oid, java.lang.String intf)This operation creates an object reference that
encapsulates the specified Object Id and interface
repository Id values. It does not cause an activation
to take place. The resulting reference may be passed
to clients, so that subsequent requests on those
references will cause the object to be activated
if necessary, or the default servant used, depending
on the applicable policies.
|
public org.omg.PortableServer.RequestProcessingPolicy | create_request_processing_policy(org.omg.PortableServer.RequestProcessingPolicyValue value)These operations each return a reference to a policy
object with the specified value.
|
public org.omg.PortableServer.ServantRetentionPolicy | create_servant_retention_policy(org.omg.PortableServer.ServantRetentionPolicyValue value)These operations each return a reference to a policy
object with the specified value.
|
public org.omg.PortableServer.ThreadPolicy | create_thread_policy(org.omg.PortableServer.ThreadPolicyValue value)These operations each return a reference to a policy
object with the specified value.
|
public void | deactivate_object(byte[] oid)This operation causes the ObjectId specified in the
oid parameter to be deactivated. An ObjectId which
has been deactivated continues to process requests
until there are no active requests for that ObjectId.
A deactivated ObjectId is removed from the Active
Object Map when all requests executing for that
ObjectId have completed.
|
public void | destroy(boolean etherealize_objects, boolean wait_for_completion)This operation destroys the POA and all descendant
POAs. All descendant POAs are destroyed (recursively)
before the destruction of the containing POA. The POA
so destroyed (that is, the POA with its name) may be
re-created later in the same process.
|
public org.omg.PortableServer.POA | find_POA(java.lang.String adapter_name, boolean activate_it)If the target POA is the parent of a child POA with
the specified name (relative to the target POA), that
child POA is returned.
|
public org.omg.PortableServer.Servant | get_servant()This operation returns the default servant associated
with the POA.
|
public org.omg.PortableServer.ServantManager | get_servant_manager()If the ServantRetentionPolicy of the POA is RETAIN,
then the ServantManager argument (imgr) shall support
the ServantActivator interface. For a NON_RETAIN policy,
the ServantManager shall support the ServantLocator
interface. If the argument is nil, or does not support
the required interface, then the OBJ_ADAPTER
exception is raised.
|
public byte[] | id()This returns the unique id of the POA in the process in which it
is created. It is for use by portable interceptors.
This id is guaranteed unique for the life span of the POA in the
process. For persistent POAs, this means that if a POA is created
in the same path with the same name as another POA, these POAs
are identical and, therefore, have the same id. For transient
POAs, each POA is unique.
|
public org.omg.CORBA.Object | id_to_reference(byte[] oid)If an object with the specified Object Id value is
currently active, a reference encapsulating the
information used to activate the object is returned.
|
public org.omg.PortableServer.Servant | id_to_servant(byte[] oid)If the POA has the RETAIN policy and the specified
ObjectId is in the Active Object Map, this operation
returns the servant associated with that object in
the Active Object Map. Otherwise, if the POA has
the USE_DEFAULT_SERVANT policy and a default servant
has been registered with the POA, this operation
returns the default servant.
|
public byte[] | reference_to_id(org.omg.CORBA.Object reference)This operation returns the Object Id value
encapsulated by the specified reference. This
operation is valid only if the reference was created
by the POA on which the operation is being performed.
The object denoted by the reference does not have
to be active for this operation to succeed.
|
public org.omg.PortableServer.Servant | reference_to_servant(org.omg.CORBA.Object reference)If the POA has the RETAIN policy and the specified
object is present in the Active Object Map, this
operation returns the servant associated with that
object in the Active Object Map. Otherwise, if the
POA has the USE_DEFAULT_SERVANT policy and a default
servant has been registered with the POA, this
operation returns the default servant. If the object
reference was not created by this POA,
the WrongAdapter exception is raised. (OMG Issue
on inconsistency with the POA.IDL.
|
public byte[] | servant_to_id(org.omg.PortableServer.Servant p_servant)This operation has four possible behaviors.
1. If the POA has the UNIQUE_ID policy and the
specified servant is active, the Object Id associated
with that servant is returned.
2. If the POA has the IMPLICIT_ACTIVATION policy and
either the POA has the MULTIPLE_ID policy or the
specified servant is not active, the servant is
activated using a POA-generated Object Id and the
Interface Id associated with the servant, and that
Object Id is returned.
3. If the POA has the USE_DEFAULT_SERVANT policy,
the servant specified is the default servant, and the
operation is being invoked in the context of executing
a request on the default servant, then the ObjectId
associated with the current invocation is returned.
4. Otherwise, the ServantNotActive exception is raised.
|
public org.omg.CORBA.Object | servant_to_reference(org.omg.PortableServer.Servant p_servant)This operation requires the RETAIN policy and either
the UNIQUE_ID or IMPLICIT_ACTIVATION policies if
invoked outside the context of an operation dispatched
by this POA. It has four possible behaviors.
1. If the POA has both the RETAIN and the
UNIQUE_ID policy and the specified servant is active,
an object reference encapsulating the information used
to activate the servant is returned.
2. If the POA has both the RETAIN and the
IMPLICIT_ACTIVATION policy and either the POA has the
MULTIPLE_ID policy or the specified servant is not
active, the servant is activated using a POA-generated
Object Id and the Interface Id associated with the
servant, and a corresponding object reference is
returned.
3. If the operation was invoked in the context of
executing a request on the specified servant, the
reference associated with the current invocation
is returned.
4. Otherwise, the ServantNotActive exception is raised.
|
public void | set_servant(org.omg.PortableServer.Servant p_servant)This operation registers the specified servant with
the POA as the default servant. This servant will
be used for all requests for which no servant is
found in the Active Object Map.
|
public void | set_servant_manager(org.omg.PortableServer.ServantManager imgr)This operation sets the default servant manager
associated with the POA. This operation may only be
invoked once after a POA has been created. Attempting
to set the servant manager after one has already
been set will result in the BAD_INV_ORDER exception
being raised.
|
public org.omg.PortableServer.POAManager | the_POAManager()This attribute identifies the POA manager
associated with the POA.
|
public org.omg.PortableServer.AdapterActivator | the_activator()This attribute identifies the adapter activator
associated with the POA.
|
public void | the_activator(org.omg.PortableServer.AdapterActivator newThe_activator)This attribute identifies the adapter activator
associated with the POA.
|
public org.omg.PortableServer.POA[] | the_children()This attribute identifies the current set of all
child POAs of the POA. The set of child POAs
includes only the POA's immediate children, and
not their descendants.
|
public java.lang.String | the_name()This attribute identifies the POA relative to its
parent. This name is assigned when the POA is created.
|
public org.omg.PortableServer.POA | the_parent()This attribute identifies the parent of the POA.
The parent of the root POA is null.
|