CTX
- the context used to initialize the implementing instance.public static interface ConfigurableLifeCycleComponent.ConfigurableLifeCycleAutomaton<CTX> extends ConfigurableLifeCycleComponent<CTX>, Configurable.ConfigureAutomaton<CTX>, Startable.StartAutomaton, Pausable.PauseAutomaton, Resumable.ResumeAutomaton, Stoppable.StopAutomaton, Destroyable.DestroyAutomaton, LifeCycleStatusAccessor
ConfigurableLifeCycleComponent.ConfigurableLifeCycleAutomaton
interface supports managing ConfigurableLifeCycleComponent
instances and takes care that the open/close statuses are invoked in the
correct order by throwing according exceptions in case the
open/close-cycle is invoked in the wrong order.
A ConfigurableLifeCycleComponent.ConfigurableLifeCycleAutomaton
may be used to wrap a
ConfigurableLifeCycleComponent
by a
HandleConfigurableAutomaton
for managing
ConfigurableLifeCycleComponent.ConfigurableLifeCycleAutomaton
instances.
The ConfigurableLifeCycleComponent
contains the business-logic
where as the HandleConfigurableAutomaton
provides the frame for
managing this business-logic. The ConfigurableLifeCycleComponent.ConfigurableLifeCycleAutomaton
takes care of the correct open/close-cycle applied on a
ConfigurableLifeCycleComponent
.ConfigurableLifeCycleComponent.ConfigurableLifeCycleAutomaton<CTX>
Configurable.ConfigureAutomaton<CTX>
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.