Destroyable
, Destroyable.DestroyAutomaton
, Initializable
, Initializable.InitializeAutomaton
, InitializedAccessor
, LifeCycleComponent
, LifeCycleStatusAccessor
, Pausable
, Pausable.PauseAutomaton
, Resumable
, Resumable.ResumeAutomaton
, RunningAccessor
, Startable
, Startable.StartAutomaton
, Stoppable
, Stoppable.StopAutomaton
LifeCycleAutomatonImpl
, LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl
public static interface LifeCycleComponent.LifeCycleAutomaton extends LifeCycleComponent, Initializable.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
.Destroyable.DestroyAutomaton
Initializable.InitializeAutomaton, Initializable.InitializeBuilder<B extends Initializable.InitializeBuilder<B>>, Initializable.UncheckedInitializable
InitializedAccessor.InitializedMutator, InitializedAccessor.InitializedProperty
LifeCycleComponent.LifeCycleAutomaton, LifeCycleComponent.UncheckedLifeCycleComponent
LifeCycleStatusAccessor.LifeCycleStatusBuilder<B extends LifeCycleStatusAccessor.LifeCycleStatusBuilder<B>>, LifeCycleStatusAccessor.LifeCycleStatusMutator, LifeCycleStatusAccessor.LifeCycleStatusProperty
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
Startable.StartAutomaton, Startable.StartBuilder<B extends Startable.StartBuilder<B>>, Startable.UncheckedStartable
Stoppable.StopAutomaton, Stoppable.StopBuilder<B extends Stoppable.StopBuilder<B>>, Stoppable.UncheckedStoppable
destroy
isDestroyable, isDestroyed
initialize, initializeUnchecked
isInitalizable
isInitialized
getLifeCycleStatus
pause, pauseUnchecked
isPausable, isPaused
resume, resumeUnchecked
isResumable
isRunning
start, startUnchecked
isStartable
stop, stopUnchecked
isStoppable, isStopped
Copyright © 2018. All rights reserved.