1 package org.omg.PortableServer; 2 3 4 /** 5 * org/omg/PortableServer/LifespanPolicyValue.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 LifespanPolicyValue can have the following values. 14 * TRANSIENT - The objects implemented in the POA 15 * cannot outlive the POA instance in which they are 16 * first created. 17 * PERSISTENT - The objects implemented in the POA can 18 * outlive the process in which they are first created. 19 */ 20 public class LifespanPolicyValue implements org.omg.CORBA.portable.IDLEntity 21 { 22 private int __value; 23 private static int __size = 2; 24 private static org.omg.PortableServer.LifespanPolicyValue[] __array = new org.omg.PortableServer.LifespanPolicyValue [__size]; 25 26 public static final int _TRANSIENT = 0; 27 public static final org.omg.PortableServer.LifespanPolicyValue TRANSIENT = new org.omg.PortableServer.LifespanPolicyValue(_TRANSIENT); 28 public static final int _PERSISTENT = 1; 29 public static final org.omg.PortableServer.LifespanPolicyValue PERSISTENT = new org.omg.PortableServer.LifespanPolicyValue(_PERSISTENT); 30 31 public int value () 32 { 33 return __value; 34 } 35 36 public static org.omg.PortableServer.LifespanPolicyValue 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 LifespanPolicyValue (int value) 45 { 46 __value = value; 47 __array[__value] = this; 48 } 49 } // class LifespanPolicyValue 50