public static interface LifeCycleComponent.LifeCycleAutomaton extends LifeCycleComponent, Initializeable.InitializeAutomaton, Startable.StartAutomaton, Pausable.PauseAutomaton, Resumable.ResumeAutomaton, Stoppable.StopAutomaton, Destroyable.DestroyAutomaton, LifeCycleStatusAccessor
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
.LifeCycleComponent.LifeCycleAutomaton
Initializeable.InitializeAutomaton
InitializedAccessor.InitializedMutator, InitializedAccessor.InitializedProperty
Startable.StartAutomaton
Pausable.PauseAutomaton
Resumable.ResumeAutomaton
RunningAccessor.RunningMutator, RunningAccessor.RunningProperty
Stoppable.StopAutomaton
Destroyable.DestroyAutomaton
LifeCycleStatusAccessor.LifeCycleStatusMutator, LifeCycleStatusAccessor.LifeCycleStatusProperty
isInitalizable
initialize
isInitialized
isStartable
isPausable, isPaused
isResumable
isRunning
isStoppable, isStopped
isDestroyable, isDestroyed
destroy
getLifeCycleStatus
Copyright © 2015. All rights reserved.