Class PICurrent
java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.ee.impl.interceptors.PICurrent
- All Implemented Interfaces:
Serializable, Current, CurrentOperations, Object, IDLEntity, Current, CurrentOperations
PICurrent is the implementation of Current as specified in the Portable
Interceptors Spec orbos/99-12-02.
IMPORTANT: PICurrent is implemented with the assumption that get_slot()
or set_slot() will not be called in ORBInitializer.pre_init() and
post_init().
- See Also:
-
Method Summary
Modifier and TypeMethodDescription_orb()Throws anorg.omg.CORBA.NO_IMPLEMENTexception with the message "This is a locally constrained object."get_slot(int id) This method gets the slot data at the given slot id (index) from the Slot Table which is on the top of the SlotTableStack.voidThis method sets the slot data at the given slot id (index) in the Slot Table which is on the top of the SlotTableStack.Methods inherited from class LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connectionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
-
Method Details
-
_orb
Description copied from class:LocalObjectThrows anorg.omg.CORBA.NO_IMPLEMENTexception with the message "This is a locally constrained object." This method is the default implementation of theorg.omg.CORBA.Objectmethod.- Overrides:
_orbin classLocalObject- Returns:
- the ORB instance that created the Delegate contained in this
ObjectImpl - See Also:
-
set_slot
This method sets the slot data at the given slot id (index) in the Slot Table which is on the top of the SlotTableStack.- Specified by:
set_slotin interfaceCurrentOperations- Parameters:
id- TheSlotIdof the slot to which the data will be set.data- The data, in the form of an Any, which will be set to the identified slot.- Throws:
InvalidSlot- thrown ifset_slotis called on a slot that has not been allocated.
-
get_slot
This method gets the slot data at the given slot id (index) from the Slot Table which is on the top of the SlotTableStack.- Specified by:
get_slotin interfaceCurrentOperations- Parameters:
id- TheSlotIdof the slot from which the data will be returned.- Returns:
- The data, in the form of an Any, of the given slot identifier.
- Throws:
InvalidSlot- thrown if get_slot is called on a slot that has not been allocated.
-