Interface LifecycleComponent.LifecycleAutomaton

All Superinterfaces:
Destroyable, Destroyable.DestroyAutomaton, Initializable, Initializable.InitializeAutomaton, InitializedAccessor, LifecycleComponent, LifecycleStatusAccessor, Pausable, Pausable.PauseAutomaton, Resumable, Resumable.ResumeAutomaton, RunningAccessor, Startable, Startable.StartAutomaton, Stoppable, Stoppable.StopAutomaton
All Known Implementing Classes:
LifecycleAutomatonImpl, LifecycleAutomatonImpl.ManualLifecycleAutomatonImpl
Enclosing interface:
LifecycleComponent

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. A LifecycleComponent.LifecycleAutomaton may be used to wrap a LifecycleComponent by a LifecycleComponentHandle.LifecycleAutomatonHandle for managing LifecycleComponent instances. 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.