KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.PortableServer;
2
3
4 /**
5 * org/omg/PortableServer/ImplicitActivationPolicyValue.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      * ImplicitActivationPolicyValue has the following
14      * semantics.
15      * IMPLICIT_ACTIVATION to indicate implicit activation
16      * of servants. This requires SYSTEM_ID and RETAIN
17      * policies to be set.
18      * NO_IMPLICIT_ACTIVATION to indicate no implicit
19      * servant activation.
20      */

21 public class ImplicitActivationPolicyValue implements org.omg.CORBA.portable.IDLEntity JavaDoc
22 {
23   private int __value;
24   private static int __size = 2;
25   private static org.omg.PortableServer.ImplicitActivationPolicyValue JavaDoc[] __array = new org.omg.PortableServer.ImplicitActivationPolicyValue JavaDoc [__size];
26
27   public static final int _IMPLICIT_ACTIVATION = 0;
28   public static final org.omg.PortableServer.ImplicitActivationPolicyValue JavaDoc IMPLICIT_ACTIVATION = new org.omg.PortableServer.ImplicitActivationPolicyValue JavaDoc(_IMPLICIT_ACTIVATION);
29   public static final int _NO_IMPLICIT_ACTIVATION = 1;
30   public static final org.omg.PortableServer.ImplicitActivationPolicyValue JavaDoc NO_IMPLICIT_ACTIVATION = new org.omg.PortableServer.ImplicitActivationPolicyValue JavaDoc(_NO_IMPLICIT_ACTIVATION);
31
32   public int value ()
33   {
34     return __value;
35   }
36
37   public static org.omg.PortableServer.ImplicitActivationPolicyValue JavaDoc from_int (int value)
38   {
39     if (value >= 0 && value < __size)
40       return __array[value];
41     else
42       throw new org.omg.CORBA.BAD_PARAM JavaDoc ();
43   }
44
45   protected ImplicitActivationPolicyValue (int value)
46   {
47     __value = value;
48     __array[__value] = this;
49   }
50 } // class ImplicitActivationPolicyValue
51
Popular Tags