Class PICurrent

java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.se.impl.interceptors.PICurrent
All Implemented Interfaces:
Serializable, Current, CurrentOperations, Object, IDLEntity, Current, CurrentOperations

public class PICurrent extends LocalObject implements Current
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 Details

    • set_slot

      public void set_slot(int id, Any data) throws InvalidSlot
      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_slot in interface CurrentOperations
      Parameters:
      id - The SlotId of 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 if set_slot is called on a slot that has not been allocated.
    • get_slot

      public Any get_slot(int id) throws InvalidSlot
      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_slot in interface CurrentOperations
      Parameters:
      id - The SlotId of 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.