1 package org.omg.PortableServer; 2 3 4 /** 5 * org/omg/PortableServer/ServantRetentionPolicyValue.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 * ServantRetentionPolicyValue can have the following 14 * values. RETAIN - to indicate that the POA will retain 15 * active servants in its Active Object Map. 16 * NON_RETAIN - to indicate Servants are not retained by 17 * the POA. If no ServantRetentionPolicy is specified at 18 * POA creation, the default is RETAIN. 19 */ 20 public class ServantRetentionPolicyValue implements org.omg.CORBA.portable.IDLEntity 21 { 22 private int __value; 23 private static int __size = 2; 24 private static org.omg.PortableServer.ServantRetentionPolicyValue[] __array = new org.omg.PortableServer.ServantRetentionPolicyValue [__size]; 25 26 public static final int _RETAIN = 0; 27 public static final org.omg.PortableServer.ServantRetentionPolicyValue RETAIN = new org.omg.PortableServer.ServantRetentionPolicyValue(_RETAIN); 28 public static final int _NON_RETAIN = 1; 29 public static final org.omg.PortableServer.ServantRetentionPolicyValue NON_RETAIN = new org.omg.PortableServer.ServantRetentionPolicyValue(_NON_RETAIN); 30 31 public int value () 32 { 33 return __value; 34 } 35 36 public static org.omg.PortableServer.ServantRetentionPolicyValue from_int (int value) 37 { 38 if (value >= 0 && value < __size) 39 return __array[value]; 40 else 41 throw new org.omg.CORBA.BAD_PARAM (); 42 } 43 44 protected ServantRetentionPolicyValue (int value) 45 { 46 __value = value; 47 __array[__value] = this; 48 } 49 } // class ServantRetentionPolicyValue 50