Destroyable, Initializable, Pausable, Resumable, Startable, StoppableCompositeComponent, CompositeComponent.ExtendedCompositeComponent<CTX,CON>, LifeCycleComponent.LifeCycleAutomaton, LifeCycleComponent.UncheckedLifeCycleComponentCompositeComponentImpl, CompositeComponentImpl.ExtendedCompositeComponentImpl, LifeCycleAutomatonImpl, LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImplpublic interface LifeCycleComponent extends Initializable, Startable, Pausable, Resumable, Stoppable, Destroyable
LifeCycleComponent interface supports a
life-cycle. I.e. such a component may be instructed from the outside to run
through several stages from getting started till being destroyed. The valid
state changes are mainly as follows: "initialize" - "start" - "pause" -
"resume" - "stop" - "destroy"
For example: "initialize" - "start" - "pause" - "resume" - "pause" - "resume"
- "stop" - "start" - "pause" - "resume" - "stop" - "destroy"
The LifeCycleComponentHandle.LifeCycleAutomatonHandle is a component managing various
LifeCycleComponents each identified by a dedicated handle. Operations
on the LifeCycleComponent are invoked by this
LifeCycleComponentHandle.LifeCycleAutomatonHandle with a handle identifying the according
LifeCycleComponent.
The LifeCycleComponent contains the business-logic where as the
LifeCycleComponentHandle.LifeCycleAutomatonHandle provides the frame for managing this
business-logic. The LifeCycleComponent.LifeCycleAutomaton takes care of the correct
life-cycle applied on a LifeCycleComponent.
| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
LifeCycleComponent.LifeCycleAutomaton |
A system implementing the
LifeCycleComponent.LifeCycleAutomaton interface supports
managing LifeCycleComponent instances and takes care that the
life-cycle stages are invoked in the correct order by throwing according
exceptions in case the life-cycle is invoked in the wrong order. |
static interface |
LifeCycleComponent.UncheckedLifeCycleComponent |
Same as the
LifeCycleComponent though without the need to
try-catch any exceptions on the various life-cycle stages. |
Destroyable.DestroyAutomatonInitializable.InitializeAutomaton, Initializable.InitializeBuilder<B extends Initializable.InitializeBuilder<B>>, Initializable.UncheckedInitializablePausable.PauseAutomaton, Pausable.PauseBuilder<B extends Pausable.PauseBuilder<B>>, Pausable.UncheckedPausableResumable.ResumeAutomaton, Resumable.ResumeBuilder<B extends Resumable.ResumeBuilder<B>>, Resumable.UncheckedResumableStartable.StartAutomaton, Startable.StartBuilder<B extends Startable.StartBuilder<B>>, Startable.UncheckedStartableStoppable.StopAutomaton, Stoppable.StopBuilder<B extends Stoppable.StopBuilder<B>>, Stoppable.UncheckedStoppabledestroyinitialize, initializeUncheckedpause, pauseUncheckedresume, resumeUncheckedstart, startUncheckedstop, stopUncheckedCopyright © 2018. All rights reserved.