KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > PortableServer > CurrentOperations


1 package org.omg.PortableServer;
2
3
4 /**
5 * org/omg/PortableServer/CurrentOperations.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/org/omg/PortableServer/poa.idl
8 * Saturday, February 9, 2008 9:40:03 AM GMT
9 */

10
11
12 /**
13      * The PortableServer::Current interface, derived from
14      * CORBA::Current, provides method implementations with
15      * access to the identity of the object on which the
16      * method was invoked. The Current interface is provided
17      * to support servants that implement multiple objects,
18      * but can be used within the context of POA-dispatched
19      * method invocations on any servant. To provide location
20      * transparency, ORBs are required to support use of
21      * Current in the context of both locally and remotely
22      * invoked operations. An instance of Current can be
23      * obtained by the application by issuing the
24      * CORBA::ORB::resolve_initial_references("POACurrent")
25      * operation. Thereafter, it can be used within the
26      * context of a method dispatched by the POA to obtain
27      * the POA and ObjectId that identify the object on
28      * which that operation was invoked.
29      */

30 public interface CurrentOperations extends org.omg.CORBA.CurrentOperations JavaDoc
31 {
32
33   /**
34      * Returns reference to the POA implementing the
35      * object in whose context it is called.
36      *
37      * @return The poa implementing the object
38      *
39      * @exception NoContext is raised when the operation is
40      * outside the context of a POA-dispatched
41      * operation
42      */

43   org.omg.PortableServer.POA JavaDoc get_POA () throws org.omg.PortableServer.CurrentPackage.NoContext JavaDoc;
44
45   /**
46      * Returns the ObjectId identifying the object in
47      * whose context it is called.
48      *
49      * @return the ObjectId of the object
50      *
51      * @exception NoContext is raised when the operation
52      * is called outside the context of a POA-dispatched
53      * operation.
54      */

55   byte[] get_object_id () throws org.omg.PortableServer.CurrentPackage.NoContext JavaDoc;
56 } // interface CurrentOperations
57
Popular Tags