FileDocCategorySizeDatePackage
LifespanPolicyValue.javaAPI DocJava SE 6 API1654Tue Jun 10 01:33:16 BST 2008org.omg.PortableServer

LifespanPolicyValue

public class LifespanPolicyValue extends Object implements org.omg.CORBA.portable.IDLEntity
The LifespanPolicyValue can have the following values. TRANSIENT - The objects implemented in the POA cannot outlive the POA instance in which they are first created. PERSISTENT - The objects implemented in the POA can outlive the process in which they are first created.

Fields Summary
private int
__value
private static int
__size
private static LifespanPolicyValue[]
__array
public static final int
_TRANSIENT
public static final LifespanPolicyValue
TRANSIENT
public static final int
_PERSISTENT
public static final LifespanPolicyValue
PERSISTENT
Constructors Summary
protected LifespanPolicyValue(int value)

    __value = value;
    __array[__value] = this;
  
Methods Summary
public static org.omg.PortableServer.LifespanPolicyValuefrom_int(int value)

    if (value >= 0 && value < __size)
      return __array[value];
    else
      throw new org.omg.CORBA.BAD_PARAM ();
  
public intvalue()


     
  
    return __value;