net.dpml.metro.info
Class LifestylePolicy

java.lang.Object
  extended bynet.dpml.lang.Enum
      extended bynet.dpml.metro.info.LifestylePolicy
All Implemented Interfaces:
Serializable

public final class LifestylePolicy
extends Enum

Lifestyle policy enumeration.

Version:
1.0.1
Author:
Digital Product Meta Library
See Also:
Serialized Form

Field Summary
static LifestylePolicy SINGLETON
          Singleton lifestyle policy.
static LifestylePolicy SYSTEM
          Singleton lifestyle policy.
static LifestylePolicy THREAD
          Per-thread lifestyle policy.
static LifestylePolicy TRANSIENT
          Transient lifestyle policy.
 
Method Summary
static LifestylePolicy parse(String value)
          Parse the supplied value into a lifestyle policy.
 String toString()
          Return a string representation of the lifestyle constant.
static LifestylePolicy[] values()
          Returns an array of activation enum values.
 
Methods inherited from class net.dpml.lang.Enum
equals, getName, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TRANSIENT

public static final LifestylePolicy TRANSIENT
Transient lifestyle policy.


THREAD

public static final LifestylePolicy THREAD
Per-thread lifestyle policy.


SINGLETON

public static final LifestylePolicy SINGLETON
Singleton lifestyle policy.


SYSTEM

public static final LifestylePolicy SYSTEM
Singleton lifestyle policy.

Method Detail

values

public static LifestylePolicy[] values()
Returns an array of activation enum values.

Returns:
the activation policies array

toString

public String toString()
Return a string representation of the lifestyle constant.

Overrides:
toString in class Enum
Returns:
the string value

parse

public static LifestylePolicy parse(String value)
                             throws IllegalArgumentException
Parse the supplied value into a lifestyle policy.

Parameters:
value - the value to parse
Returns:
the lifestyle policy
Throws:
IllegalArgumentException - if the value cannot be mapped to a lifestyle policy enumeration name