org.sape.carbon.core.component.lifecycle
Class LifecycleStateEnum

java.lang.Object
  |
  +--org.sape.carbon.core.util.enum.BaseEnum
        |
        +--org.sape.carbon.core.component.lifecycle.LifecycleStateEnum
All Implemented Interfaces:
Serializable

public class LifecycleStateEnum
extends BaseEnum
implements Serializable

LifecycleStateEnum defines the Enumeration of states that a Component can have at any point in the Lifecycle. The states ending in "ing" are considered to be transitional states and should be taken as an indication that the component is undergoing a current state transition. Copyright 2002 Sapient

Since:
carbon 1.0
Version:
$Revision: 1.13 $($Author: dvoet $ / $Date: 2003/05/05 21:21:13 $)
Author:
Chris Herron, January 2002
See Also:
Serialized Form

Nested Class Summary
 class LifecycleStateEnum.LifecycleStateEnumNotFoundException
           
 
Nested classes inherited from class org.sape.carbon.core.util.enum.BaseEnum
 
Field Summary
static LifecycleStateEnum CONFIGURING
          CONFIGURING
static int CONFIGURING_ORDINAL
          Ordinal number for CONFIGURING
static LifecycleStateEnum CREATING
          CREATING
static int CREATING_ORDINAL
          Ordinal number for CREATING
static LifecycleStateEnum DESTROYED
          DESTROYED
static int DESTROYED_ORDINAL
          Ordinal number for DESTROYED
static LifecycleStateEnum DESTROYING
          DESTROYING
static int DESTROYING_ORDINAL
          Ordinal number for DESTROYING
static LifecycleStateEnum INITIALIZING
          INITIALIZING
static int INITIALIZING_ORDINAL
          Ordinal number for INITIALIZING
static LifecycleStateEnum RESUMING
          RESUMING
static int RESUMING_ORDINAL
          Ordinal number for RESUMING
static LifecycleStateEnum RUNNING
          RUNNING
static int RUNNING_ORDINAL
          Ordinal number for RUNNING
static LifecycleStateEnum STARTING
          STARTING
static int STARTING_ORDINAL
          Ordinal number for STARTING
static LifecycleStateEnum STOPPED
          STOPPED
static int STOPPED_ORDINAL
          Ordinal number for STOPPED
static LifecycleStateEnum STOPPING
          STOPPING
static int STOPPING_ORDINAL
          Ordinal number for STOPPING
static LifecycleStateEnum SUSPENDED
          SUSPENDED
static int SUSPENDED_ORDINAL
          Ordinal number for SUSPENDED
static LifecycleStateEnum SUSPENDING
          SUSPENDING
static int SUSPENDING_ORDINAL
          Ordinal number for SUSPENDING
 
Fields inherited from class org.sape.carbon.core.util.enum.BaseEnum
name, ordinal
 
Constructor Summary
private LifecycleStateEnum(String name, int ordinal)
           
 
Method Summary
static LifecycleStateEnum getByName(String name)
           
static LifecycleStateEnum getByOrdinal(int ordinal)
           
(package private)  Object readResolve()
           
 
Methods inherited from class org.sape.carbon.core.util.enum.BaseEnum
equals, getByName, getByOrdinal, getName, getOrdinal, hashCode, iterator, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CREATING_ORDINAL

public static final int CREATING_ORDINAL
Ordinal number for CREATING

See Also:
Constant Field Values

CREATING

public static final LifecycleStateEnum CREATING
CREATING


INITIALIZING_ORDINAL

public static final int INITIALIZING_ORDINAL
Ordinal number for INITIALIZING

See Also:
Constant Field Values

INITIALIZING

public static final LifecycleStateEnum INITIALIZING
INITIALIZING


STARTING_ORDINAL

public static final int STARTING_ORDINAL
Ordinal number for STARTING

See Also:
Constant Field Values

STARTING

public static final LifecycleStateEnum STARTING
STARTING


RUNNING_ORDINAL

public static final int RUNNING_ORDINAL
Ordinal number for RUNNING

See Also:
Constant Field Values

RUNNING

public static final LifecycleStateEnum RUNNING
RUNNING


STOPPING_ORDINAL

public static final int STOPPING_ORDINAL
Ordinal number for STOPPING

See Also:
Constant Field Values

STOPPING

public static final LifecycleStateEnum STOPPING
STOPPING


STOPPED_ORDINAL

public static final int STOPPED_ORDINAL
Ordinal number for STOPPED

See Also:
Constant Field Values

STOPPED

public static final LifecycleStateEnum STOPPED
STOPPED


SUSPENDING_ORDINAL

public static final int SUSPENDING_ORDINAL
Ordinal number for SUSPENDING

See Also:
Constant Field Values

SUSPENDING

public static final LifecycleStateEnum SUSPENDING
SUSPENDING


SUSPENDED_ORDINAL

public static final int SUSPENDED_ORDINAL
Ordinal number for SUSPENDED

See Also:
Constant Field Values

SUSPENDED

public static final LifecycleStateEnum SUSPENDED
SUSPENDED


RESUMING_ORDINAL

public static final int RESUMING_ORDINAL
Ordinal number for RESUMING

See Also:
Constant Field Values

RESUMING

public static final LifecycleStateEnum RESUMING
RESUMING


CONFIGURING_ORDINAL

public static final int CONFIGURING_ORDINAL
Ordinal number for CONFIGURING

See Also:
Constant Field Values

CONFIGURING

public static final LifecycleStateEnum CONFIGURING
CONFIGURING


DESTROYING_ORDINAL

public static final int DESTROYING_ORDINAL
Ordinal number for DESTROYING

See Also:
Constant Field Values

DESTROYING

public static final LifecycleStateEnum DESTROYING
DESTROYING


DESTROYED_ORDINAL

public static final int DESTROYED_ORDINAL
Ordinal number for DESTROYED

See Also:
Constant Field Values

DESTROYED

public static final LifecycleStateEnum DESTROYED
DESTROYED

Constructor Detail

LifecycleStateEnum

private LifecycleStateEnum(String name,
                           int ordinal)
See Also:
BaseEnum.BaseEnum(java.lang.Class, java.lang.String, int)
Method Detail

getByName

public static final LifecycleStateEnum getByName(String name)
                                          throws LifecycleStateEnum.LifecycleStateEnumNotFoundException
LifecycleStateEnum.LifecycleStateEnumNotFoundException
See Also:
BaseEnum.getByName(java.lang.String, java.lang.Class)

getByOrdinal

public static final LifecycleStateEnum getByOrdinal(int ordinal)
                                             throws LifecycleStateEnum.LifecycleStateEnumNotFoundException
LifecycleStateEnum.LifecycleStateEnumNotFoundException
See Also:
BaseEnum.getByOrdinal(int, java.lang.Class)

readResolve

final Object readResolve()
                  throws ObjectStreamException
ObjectStreamException
See Also:
BaseEnum.getByOrdinal(int, java.lang.Class)


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.