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
ConfigurableLifeCycleComponentHandle.ConfigurableLifeCycleAutomatonHandle
for managing
ConfigurableLifeCycleComponent.ConfigurableLifeCycleAutomaton
instances.
The ConfigurableLifeCycleComponent
contains the business-logic
where as the ConfigurableLifeCycleComponentHandle
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>, Configurable.ConfigureBuilder<CTX,B extends Configurable.ConfigureBuilder<CTX,B>>
InitializedAccessor.InitializedMutator, InitializedAccessor.InitializedProperty
Startable.StartAutomaton, Startable.StartBuilder<B extends Startable.StartBuilder<B>>, Startable.UncheckedStartable
Pausable.PauseAutomaton, Pausable.PauseBuilder<B extends Pausable.PauseBuilder<B>>, Pausable.UncheckedPausable
Resumable.ResumeAutomaton, Resumable.ResumeBuilder<B extends Resumable.ResumeBuilder<B>>, Resumable.UncheckedResumable
RunningAccessor.RunningMutator, RunningAccessor.RunningProperty
Stoppable.StopAutomaton, Stoppable.StopBuilder<B extends Stoppable.StopBuilder<B>>, Stoppable.UncheckedStoppable
Destroyable.DestroyAutomaton
LifeCycleStatusAccessor.LifeCycleStatusMutator, LifeCycleStatusAccessor.LifeCycleStatusProperty
isInitalizable
initialize, initializeUnchecked
isInitialized
isStartable
start, startUnchecked
isPausable, isPaused
pause, pauseUnchecked
isResumable
resume, resumeUnchecked
isRunning
isStoppable, isStopped
stop, stopUnchecked
isDestroyable, isDestroyed
destroy
getLifeCycleStatus
Copyright © 2017. All rights reserved.