|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.common.ComponentLifeCycle
Typesafe enum: defines life cycle states that may be internally used for components that must be robust during creation or destruction. It also defines various methods checking for the correct life cycle.
This class is supposed to help an implementation, it is in no way a requirement. Thus it depends on the implementation which states are used, supported and tested.
| Field Summary | |
static ComponentLifeCycle |
LIFE_CYCLE_STATE_ACTIVE
The component has been created and initialized, it is fully functional. |
static ComponentLifeCycle |
LIFE_CYCLE_STATE_CREATED
The component has been created, but initialization is still pending. |
static ComponentLifeCycle |
LIFE_CYCLE_STATE_CREATING
The component is currently being created. |
static ComponentLifeCycle |
LIFE_CYCLE_STATE_DISPOSED
The component is disposed. |
static ComponentLifeCycle |
LIFE_CYCLE_STATE_DISPOSING
The component is currently being disposed. |
| Method Summary | |
static void |
assertActive(ComponentLifeCycle lifeCycleState)
Checks whether the life cycle state is currently LIFE_CYCLE_STATE_ACTIVE. |
static void |
assertCreated(ComponentLifeCycle lifeCycleState)
Checks whether the life cycle state is currently LIFE_CYCLE_STATE_CREATED. |
static void |
assertCreating(ComponentLifeCycle lifeCycleState)
Checks whether the life cycle state is currently LIFE_CYCLE_STATE_CREATING. |
static void |
assertDisposed(ComponentLifeCycle lifeCycleState)
Checks whether the life cycle state is currently LIFE_CYCLE_STATE_DISPOSED. |
static void |
assertDisposing(ComponentLifeCycle lifeCycleState)
Checks whether the life cycle state is currently LIFE_CYCLE_STATE_DISPOSING. |
static void |
assertKnownState(ComponentLifeCycle lifeCycleState)
Tests whether the given state has a known value. |
static void |
assertNotDisposed(ComponentLifeCycle lifeCycleState)
Checks whether the life cycle state is currently not LIFE_CYCLE_STATE_DISPOSED. |
static void |
assertNotDisposingOrDisposed(ComponentLifeCycle lifeCycleState)
Checks whether the life cycle state is currently not LIFE_CYCLE_STATE_DISPOSING or LIFE_CYCLE_STATE_DISPOSED. |
java.lang.String |
toString()
Returns an english name for the given state. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final ComponentLifeCycle LIFE_CYCLE_STATE_CREATING
public static final ComponentLifeCycle LIFE_CYCLE_STATE_CREATED
public static final ComponentLifeCycle LIFE_CYCLE_STATE_ACTIVE
public static final ComponentLifeCycle LIFE_CYCLE_STATE_DISPOSING
public static final ComponentLifeCycle LIFE_CYCLE_STATE_DISPOSED
| Method Detail |
public java.lang.String toString()
public static void assertKnownState(ComponentLifeCycle lifeCycleState)
lifeCycleState - the life cycle state to be testet
java.lang.IllegalStateException - if the state is unknownpublic static void assertCreating(ComponentLifeCycle lifeCycleState)
LIFE_CYCLE_STATE_CREATING.
lifeCycleState - the life cycle state
java.lang.IllegalStateException - if the component is not in the correct statepublic static void assertCreated(ComponentLifeCycle lifeCycleState)
LIFE_CYCLE_STATE_CREATED.
lifeCycleState - the life cycle state
java.lang.IllegalStateException - if the component is not in the correct statepublic static void assertActive(ComponentLifeCycle lifeCycleState)
LIFE_CYCLE_STATE_ACTIVE.
lifeCycleState - the life cycle state
java.lang.IllegalStateException - if the component is not in the correct statepublic static void assertDisposing(ComponentLifeCycle lifeCycleState)
LIFE_CYCLE_STATE_DISPOSING.
lifeCycleState - the life cycle state
java.lang.IllegalStateException - if the component is not in the correct statepublic static void assertDisposed(ComponentLifeCycle lifeCycleState)
LIFE_CYCLE_STATE_DISPOSED.
lifeCycleState - the life cycle state
java.lang.IllegalStateException - if the component is not in the correct statepublic static void assertNotDisposed(ComponentLifeCycle lifeCycleState)
LIFE_CYCLE_STATE_DISPOSED.
lifeCycleState - the life cycle state
java.lang.IllegalStateException - if the component is not in the correct statepublic static void assertNotDisposingOrDisposed(ComponentLifeCycle lifeCycleState)
LIFE_CYCLE_STATE_DISPOSING or LIFE_CYCLE_STATE_DISPOSED.
lifeCycleState - the life cycle state
java.lang.IllegalStateException - if the component is not in the correct state
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||