1. package org.omg.PortableServer;
  2. /**
  3. * org/omg/PortableServer/CurrentOperations.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../src/share/classes/org/omg/PortableServer/poa.idl
  6. * Monday, February 23, 2004 7:03:02 AM GMT
  7. */
  8. /**
  9. * The PortableServer::Current interface, derived from
  10. * CORBA::Current, provides method implementations with
  11. * access to the identity of the object on which the
  12. * method was invoked. The Current interface is provided
  13. * to support servants that implement multiple objects,
  14. * but can be used within the context of POA-dispatched
  15. * method invocations on any servant. To provide location
  16. * transparency, ORBs are required to support use of
  17. * Current in the context of both locally and remotely
  18. * invoked operations. An instance of Current can be
  19. * obtained by the application by issuing the
  20. * CORBA::ORB::resolve_initial_references("POACurrent")
  21. * operation. Thereafter, it can be used within the
  22. * context of a method dispatched by the POA to obtain
  23. * the POA and ObjectId that identify the object on
  24. * which that operation was invoked.
  25. */
  26. public interface CurrentOperations extends org.omg.CORBA.CurrentOperations
  27. {
  28. /**
  29. * Returns reference to the POA implementing the
  30. * object in whose context it is called.
  31. *
  32. * @return The poa implementing the object
  33. *
  34. * @exception NoContext is raised when the operation is
  35. * outside the context of a POA-dispatched
  36. * operation
  37. */
  38. org.omg.PortableServer.POA get_POA () throws org.omg.PortableServer.CurrentPackage.NoContext;
  39. /**
  40. * Returns the ObjectId identifying the object in
  41. * whose context it is called.
  42. *
  43. * @return the ObjectId of the object
  44. *
  45. * @exception NoContext is raised when the operation
  46. * is called outside the context of a POA-dispatched
  47. * operation.
  48. */
  49. byte[] get_object_id () throws org.omg.PortableServer.CurrentPackage.NoContext;
  50. } // interface CurrentOperations