KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.PortableServer;
2
3
4 /**
5 * org/omg/PortableServer/ServantActivatorPOA.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      * When the POA has the RETAIN policy it uses servant
14      * managers that are ServantActivators.
15      */

16 public abstract class ServantActivatorPOA extends org.omg.PortableServer.Servant JavaDoc
17  implements org.omg.PortableServer.ServantActivatorOperations JavaDoc, org.omg.CORBA.portable.InvokeHandler JavaDoc
18 {
19
20   // Constructors
21

22   private static java.util.Hashtable JavaDoc _methods = new java.util.Hashtable JavaDoc ();
23   static
24   {
25     _methods.put ("incarnate", new java.lang.Integer JavaDoc (0));
26     _methods.put ("etherealize", new java.lang.Integer JavaDoc (1));
27   }
28
29   public org.omg.CORBA.portable.OutputStream JavaDoc _invoke (String JavaDoc $method,
30                                 org.omg.CORBA.portable.InputStream JavaDoc in,
31                                 org.omg.CORBA.portable.ResponseHandler JavaDoc $rh)
32   {
33     throw new org.omg.CORBA.BAD_OPERATION JavaDoc();
34   } // _invoke
35

36   // Type-specific CORBA::Object operations
37
private static String JavaDoc[] __ids = {
38     "IDL:omg.org/PortableServer/ServantActivator:2.3",
39     "IDL:omg.org/PortableServer/ServantManager:1.0"};
40
41   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
42   {
43     return (String JavaDoc[])__ids.clone ();
44   }
45
46   public ServantActivator JavaDoc _this()
47   {
48     return ServantActivatorHelper.narrow(
49     super._this_object());
50   }
51
52   public ServantActivator JavaDoc _this(org.omg.CORBA.ORB JavaDoc orb)
53   {
54     return ServantActivatorHelper.narrow(
55     super._this_object(orb));
56   }
57
58
59 } // class ServantActivatorPOA
60
Popular Tags