public enum LifecycleState extends Enum<LifecycleState>
Enum Constant and Description |
---|
DESTROYED |
DESTROYING |
FAILED |
INITIALIZED |
INITIALIZING |
NEW |
STARTED |
STARTING |
STARTING_PREP |
STOPPED |
STOPPING |
STOPPING_PREP |
Modifier and Type | Method and Description |
---|---|
String |
getLifecycleEvent() |
boolean |
isAvailable()
May the public methods other than property getters/setters and lifecycle
methods be called for a component in this state?
|
static LifecycleState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LifecycleState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LifecycleState NEW
public static final LifecycleState INITIALIZING
public static final LifecycleState INITIALIZED
public static final LifecycleState STARTING_PREP
public static final LifecycleState STARTING
public static final LifecycleState STARTED
public static final LifecycleState STOPPING_PREP
public static final LifecycleState STOPPING
public static final LifecycleState STOPPED
public static final LifecycleState DESTROYING
public static final LifecycleState DESTROYED
public static final LifecycleState FAILED
public static LifecycleState[] values()
for (LifecycleState c : LifecycleState.values()) System.out.println(c);
public static LifecycleState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isAvailable()
true
for any component in any of the following states:
true
if the component is available for use,
otherwise false
public String getLifecycleEvent()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.