public enum ComponentState extends java.lang.Enum<ComponentState>
Component.add(ComponentStateListener)
method
are notified with the following stated whenever the component state changes.Enum Constant and Description |
---|
INACTIVE
The component is not currently started, and is inactive.
|
INSTANTIATED_AND_WAITING_FOR_REQUIRED
The component has all its initial required dependencies available, but is now waiting for some extra required
dependencies which have been added after the component have been started (like from the component init method for example).
|
TRACKING_OPTIONAL
The component is active, and is now tracking available optional dependencies.
|
WAITING_FOR_REQUIRED
The component is waiting for some required dependencies.
|
Modifier and Type | Method and Description |
---|---|
static ComponentState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ComponentState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComponentState INACTIVE
public static final ComponentState WAITING_FOR_REQUIRED
public static final ComponentState INSTANTIATED_AND_WAITING_FOR_REQUIRED
public static final ComponentState TRACKING_OPTIONAL
public static ComponentState[] values()
for (ComponentState c : ComponentState.values()) System.out.println(c);
public static ComponentState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null