org.jboss.soa.esb.listeners.lifecycle
Enum ManagedLifecycleState

java.lang.Object
  extended by java.lang.Enum<ManagedLifecycleState>
      extended by org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ManagedLifecycleState>

public enum ManagedLifecycleState
extends java.lang.Enum<ManagedLifecycleState>

This enumeration represents the lifecycle state of a managed instance.

Allowable transitions are as follows

Originating stateNew states
CONSTRUCTEDINITIALISING
INITIALISINGINITIALISED, DESTROYED
INITIALISEDSTARTING, DESTROYED
STARTINGSTARTED, STOPPED
STARTEDRUNNING, STOPPING
RUNNINGSTOPPING
STOPPINGSTOPPED
STOPPEDSTARTING, DESTROYING
DESTROYINGDESTROYED

Author:
kevin

Enum Constant Summary
CONSTRUCTED
           
DESTROYED
           
DESTROYING
           
INITIALISED
           
INITIALISING
           
RUNNING
           
STARTED
           
STARTING
           
STOPPED
           
STOPPING
           
 
Method Summary
abstract  boolean canTransition(ManagedLifecycleState newState)
           
static ManagedLifecycleState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ManagedLifecycleState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONSTRUCTED

public static final ManagedLifecycleState CONSTRUCTED

INITIALISING

public static final ManagedLifecycleState INITIALISING

INITIALISED

public static final ManagedLifecycleState INITIALISED

STARTING

public static final ManagedLifecycleState STARTING

STARTED

public static final ManagedLifecycleState STARTED

RUNNING

public static final ManagedLifecycleState RUNNING

STOPPING

public static final ManagedLifecycleState STOPPING

STOPPED

public static final ManagedLifecycleState STOPPED

DESTROYING

public static final ManagedLifecycleState DESTROYING

DESTROYED

public static final ManagedLifecycleState DESTROYED
Method Detail

values

public static ManagedLifecycleState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ManagedLifecycleState c : ManagedLifecycleState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ManagedLifecycleState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

canTransition

public abstract boolean canTransition(ManagedLifecycleState newState)