J-Integra® Espresso Programming Documentation (API)

POA.id_to_servant Method

This operation returns the servant associated with the given object or it returns the default servant depending on the policies specified (RETAIN or USE_DEFAULT_SERVANT). With the RETAIN policy the object has to be registered with the active object map of this POA.

Servant id_to_servant(
 byte[] oid
);

Parameters

oid
Object id of the active object.

Return Value

Servant associated with the object.

Remarks

none

Exceptions

Exception TypeCondition
POAPackage.WrongPolicy An error occurs if the RETAIN or the USE_DEFAULT_SERVANT policy is not specified.
POAPackage.ObjectNotActive An error occurs if the object for the given object id is not active or no default servant was registered.

See Also

POA Interface | POA Members | Ics Namespace