Package org.refcodes.component
Class LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl
- java.lang.Object
-
- org.refcodes.component.LifeCycleAutomatonImpl
-
- org.refcodes.component.LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl
-
- All Implemented Interfaces:
Destroyable,Destroyable.DestroyAutomaton,Initializable,Initializable.InitializeAutomaton,InitializedAccessor,LifeCycleComponent,LifeCycleComponent.LifeCycleAutomaton,LifeCycleStatusAccessor,LifeCycleStatusAccessor.LifeCycleStatusMutator,Pausable,Pausable.PauseAutomaton,Resumable,Resumable.ResumeAutomaton,RunningAccessor,Startable,Startable.StartAutomaton,Stoppable,Stoppable.StopAutomaton
- Enclosing class:
- LifeCycleAutomatonImpl
public static class LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl extends LifeCycleAutomatonImpl implements LifeCycleStatusAccessor.LifeCycleStatusMutator
Opens the otherwise protectedsetLifeCycleStatus(LifeCycleStatus)to be public in order to force any lifecycle status to be set.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.Destroyable
Destroyable.DestroyAutomaton
-
Nested classes/interfaces inherited from interface org.refcodes.component.Initializable
Initializable.InitializeAutomaton, Initializable.InitializeBuilder<B extends Initializable.InitializeBuilder<B>>, Initializable.UncheckedInitializable
-
Nested classes/interfaces inherited from interface org.refcodes.component.InitializedAccessor
InitializedAccessor.InitializedMutator, InitializedAccessor.InitializedProperty
-
Nested classes/interfaces inherited from class org.refcodes.component.LifeCycleAutomatonImpl
LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl
-
Nested classes/interfaces inherited from interface org.refcodes.component.LifeCycleComponent
LifeCycleComponent.LifeCycleAutomaton, LifeCycleComponent.UncheckedLifeCycleComponent
-
Nested classes/interfaces inherited from interface org.refcodes.component.LifeCycleStatusAccessor
LifeCycleStatusAccessor.LifeCycleStatusBuilder<B extends LifeCycleStatusAccessor.LifeCycleStatusBuilder<B>>, LifeCycleStatusAccessor.LifeCycleStatusMutator, LifeCycleStatusAccessor.LifeCycleStatusProperty
-
Nested classes/interfaces inherited from interface org.refcodes.component.Pausable
Pausable.PauseAutomaton, Pausable.PauseBuilder<B extends Pausable.PauseBuilder<B>>, Pausable.UncheckedPausable
-
Nested classes/interfaces inherited from interface org.refcodes.component.Resumable
Resumable.ResumeAutomaton, Resumable.ResumeBuilder<B extends Resumable.ResumeBuilder<B>>, Resumable.UncheckedResumable
-
Nested classes/interfaces inherited from interface org.refcodes.component.RunningAccessor
RunningAccessor.RunningMutator, RunningAccessor.RunningProperty
-
Nested classes/interfaces inherited from interface org.refcodes.component.Startable
Startable.StartAutomaton, Startable.StartBuilder<B extends Startable.StartBuilder<B>>, Startable.UncheckedStartable
-
Nested classes/interfaces inherited from interface org.refcodes.component.Stoppable
Stoppable.StopAutomaton, Stoppable.StopBuilder<B extends Stoppable.StopBuilder<B>>, Stoppable.UncheckedStoppable
-
-
Constructor Summary
Constructors Constructor Description ManualLifeCycleAutomatonImpl()Empty constructor, suchLifeCycleAutomatonImpl.ManualLifeCycleAutomatonImplcannot do much more than decline the variousLifeCycleStatusstates for you.ManualLifeCycleAutomatonImpl(LifeCycleComponent aLifeCycleComponent)This constructor uses aLifeCycleAutomatonImpl.ManualLifeCycleAutomatonImplfor wrapping it inside theLifeCycleAutomatonImpl, making sure of obeying and guarding the correctLifeCycleStatus's order ofLifeCycleStatusstates for you.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetLifeCycleStatus(LifeCycleStatus aStatus)Method to force anyLifeCycleStatusto be set with no rules being applied.-
Methods inherited from interface org.refcodes.component.Initializable
initializeUnchecked
-
Methods inherited from class org.refcodes.component.LifeCycleAutomatonImpl
destroy, getLifeCycleComponent, getLifeCycleStatus, initialize, isDestroyable, isDestroyed, isInitalizable, isInitialized, isPausable, isPaused, isResumable, isRunning, isStartable, isStoppable, isStopped, pause, resume, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.refcodes.component.Pausable
pauseUnchecked
-
Methods inherited from interface org.refcodes.component.Resumable
resumeUnchecked
-
Methods inherited from interface org.refcodes.component.Startable
startUnchecked
-
Methods inherited from interface org.refcodes.component.Stoppable
stopUnchecked
-
-
-
-
Constructor Detail
-
ManualLifeCycleAutomatonImpl
public ManualLifeCycleAutomatonImpl()
Empty constructor, suchLifeCycleAutomatonImpl.ManualLifeCycleAutomatonImplcannot do much more than decline the variousLifeCycleStatusstates for you.
-
ManualLifeCycleAutomatonImpl
public ManualLifeCycleAutomatonImpl(LifeCycleComponent aLifeCycleComponent)
This constructor uses aLifeCycleAutomatonImpl.ManualLifeCycleAutomatonImplfor wrapping it inside theLifeCycleAutomatonImpl, making sure of obeying and guarding the correctLifeCycleStatus's order ofLifeCycleStatusstates for you.- Parameters:
aLifeCycleComponent- The component to be guarded regarding the correct declination of theLifeCycleStatusstates.
-
-
Method Detail
-
setLifeCycleStatus
public void setLifeCycleStatus(LifeCycleStatus aStatus)
Method to force anyLifeCycleStatusto be set with no rules being applied. Provides means to set theLifeCycleStatusmanually.- Specified by:
setLifeCycleStatusin interfaceLifeCycleStatusAccessor.LifeCycleStatusMutator- Overrides:
setLifeCycleStatusin classLifeCycleAutomatonImpl- Parameters:
aStatus- The status to be "forced".
-
-