public class ObservableLifeCycleAutomatonImpl extends org.refcodes.component.LifeCycleAutomatonImpl implements ObservableLifeCycleAutomaton
ObservableLifeCycleAutomaton
interface
with the according hook methods for you to create your domain driven
ObservableLifeCycleAutomaton
.org.refcodes.component.LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl
ObservableLifeCycleAutomaton.ObservableLifeCycleRequestAutomaton
org.refcodes.component.LifeCycleComponent.LifeCycleAutomaton, org.refcodes.component.LifeCycleComponent.UncheckedLifeCycleComponent
org.refcodes.component.Initializable.InitializeAutomaton, org.refcodes.component.Initializable.InitializeBuilder<B extends org.refcodes.component.Initializable.InitializeBuilder<B>>, org.refcodes.component.Initializable.UncheckedInitializable
org.refcodes.component.InitializedAccessor.InitializedMutator, org.refcodes.component.InitializedAccessor.InitializedProperty
org.refcodes.component.Startable.StartAutomaton, org.refcodes.component.Startable.StartBuilder<B extends org.refcodes.component.Startable.StartBuilder<B>>, org.refcodes.component.Startable.UncheckedStartable
org.refcodes.component.Pausable.PauseAutomaton, org.refcodes.component.Pausable.PauseBuilder<B extends org.refcodes.component.Pausable.PauseBuilder<B>>, org.refcodes.component.Pausable.UncheckedPausable
org.refcodes.component.Resumable.ResumeAutomaton, org.refcodes.component.Resumable.ResumeBuilder<B extends org.refcodes.component.Resumable.ResumeBuilder<B>>, org.refcodes.component.Resumable.UncheckedResumable
org.refcodes.component.RunningAccessor.RunningMutator, org.refcodes.component.RunningAccessor.RunningProperty
org.refcodes.component.Stoppable.StopAutomaton, org.refcodes.component.Stoppable.StopBuilder<B extends org.refcodes.component.Stoppable.StopBuilder<B>>, org.refcodes.component.Stoppable.UncheckedStoppable
Modifier and Type | Field and Description |
---|---|
protected static org.refcodes.logger.RuntimeLogger |
LOGGER |
Constructor and Description |
---|
ObservableLifeCycleAutomatonImpl()
Instantiates a new observable life cycle automaton impl.
|
ObservableLifeCycleAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData) |
ObservableLifeCycleAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData,
Object aSource) |
ObservableLifeCycleAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData,
Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleAutomatonImpl(ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent) |
ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
org.refcodes.observer.EventMetaData aEventMetaData) |
ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
org.refcodes.observer.EventMetaData aEventMetaData,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
org.refcodes.observer.EventMetaData aEventMetaData,
Object aSource) |
ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
org.refcodes.observer.EventMetaData aEventMetaData,
Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
Object aSource) |
ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleAutomatonImpl(Object aSource) |
ObservableLifeCycleAutomatonImpl(Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
boolean |
hasObserverSubscription(LifeCycleObserver aObserver) |
void |
initialize() |
void |
pause() |
void |
resume() |
void |
start() |
void |
stop() |
boolean |
subscribeObserver(LifeCycleObserver aObserver) |
boolean |
unsubscribeObserver(LifeCycleObserver aObserver) |
getLifeCycleComponent, getLifeCycleStatus, isDestroyable, isDestroyed, isInitalizable, isInitialized, isPausable, isPaused, isResumable, isRunning, isStartable, isStoppable, isStopped, setLifeCycleStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isInitalizable
isPausable, isPaused
isStoppable, isStopped
public ObservableLifeCycleAutomatonImpl()
public ObservableLifeCycleAutomatonImpl(Object aSource)
aSource
- The source instance to be used when firing events in case
the source is to be different from this class' instance.public ObservableLifeCycleAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData)
aEventMetaData
- The EventMetaData
to be used when firing
events in case the EventMetaData
is to be different from
the auto-generated EventMetaData
.public ObservableLifeCycleAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData, Object aSource)
aEventMetaData
- The EventMetaData
to be used when firing
events in case the EventMetaData
is to be different from
the auto-generated EventMetaData
.aSource
- The source instance to be used when firing events in case
the source is to be different from this class' instance.public ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent)
aLifeCycleComponent
- The LifeCycleComponent
to which the
life-cycle method calls are to be delegated to.public ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent, Object aSource)
aLifeCycleComponent
- The LifeCycleComponent
to which the
life-cycle method calls are to be delegated to.aSource
- The source instance to be used when firing events in case
the source is to be different from this class' instance.public ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent, org.refcodes.observer.EventMetaData aEventMetaData)
aLifeCycleComponent
- The LifeCycleComponent
to which the
life-cycle method calls are to be delegated to.aEventMetaData
- The EventMetaData
to be used when firing
events in case the EventMetaData
is to be different from
the auto-generated EventMetaData
.public ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent, org.refcodes.observer.EventMetaData aEventMetaData, Object aSource)
aLifeCycleComponent
- The LifeCycleComponent
to which the
life-cycle method calls are to be delegated to.aEventMetaData
- The EventMetaData
to be used when firing
events in case the EventMetaData
is to be different from
the auto-generated EventMetaData
.aSource
- The source instance to be used when firing events in case
the source is to be different from this class' instance.public ObservableLifeCycleAutomatonImpl(ExecutorService aExecutorService, org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy)
aExecutorService
- The executor service to be used when firing
ActionEvent
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing ActionEvent
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleAutomatonImpl(Object aSource, ExecutorService aExecutorService, org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy)
aSource
- The source instance to be used when firing events in case
the source is to be different from this class' instance.aExecutorService
- The executor service to be used when firing
ActionEvent
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing ActionEvent
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData, ExecutorService aExecutorService, org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy)
aEventMetaData
- The EventMetaData
to be used when firing
events in case the EventMetaData
is to be different from
the auto-generated EventMetaData
.aExecutorService
- The executor service to be used when firing
ActionEvent
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing ActionEvent
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData, Object aSource, ExecutorService aExecutorService, org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy)
aEventMetaData
- The EventMetaData
to be used when firing
events in case the EventMetaData
is to be different from
the auto-generated EventMetaData
.aSource
- The source instance to be used when firing events in case
the source is to be different from this class' instance.aExecutorService
- The executor service to be used when firing
ActionEvent
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing ActionEvent
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent, ExecutorService aExecutorService, org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy)
aLifeCycleComponent
- The LifeCycleComponent
to which the
life-cycle method calls are to be delegated to.aExecutorService
- The executor service to be used when firing
ActionEvent
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing ActionEvent
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent, Object aSource, ExecutorService aExecutorService, org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy)
aLifeCycleComponent
- The LifeCycleComponent
to which the
life-cycle method calls are to be delegated to.aSource
- The source instance to be used when firing events in case
the source is to be different from this class' instance.aExecutorService
- The executor service to be used when firing
ActionEvent
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing ActionEvent
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent, org.refcodes.observer.EventMetaData aEventMetaData, ExecutorService aExecutorService, org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy)
aLifeCycleComponent
- The LifeCycleComponent
to which the
life-cycle method calls are to be delegated to.aEventMetaData
- The EventMetaData
to be used when firing
events in case the EventMetaData
is to be different from
the auto-generated EventMetaData
.aExecutorService
- The executor service to be used when firing
ActionEvent
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing ActionEvent
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent, org.refcodes.observer.EventMetaData aEventMetaData, Object aSource, ExecutorService aExecutorService, org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy)
aLifeCycleComponent
- The LifeCycleComponent
to which the
life-cycle method calls are to be delegated to.aEventMetaData
- The EventMetaData
to be used when firing
events in case the EventMetaData
is to be different from
the auto-generated EventMetaData
.aSource
- The source instance to be used when firing events in case
the source is to be different from this class' instance.aExecutorService
- The executor service to be used when firing
ActionEvent
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing ActionEvent
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public boolean hasObserverSubscription(LifeCycleObserver aObserver)
hasObserverSubscription
in interface org.refcodes.observer.Observable<LifeCycleObserver>
public boolean subscribeObserver(LifeCycleObserver aObserver)
subscribeObserver
in interface org.refcodes.observer.Observable<LifeCycleObserver>
public boolean unsubscribeObserver(LifeCycleObserver aObserver)
unsubscribeObserver
in interface org.refcodes.observer.Observable<LifeCycleObserver>
public void initialize() throws org.refcodes.component.InitializeException
initialize
in interface org.refcodes.component.Initializable
initialize
in class org.refcodes.component.LifeCycleAutomatonImpl
org.refcodes.component.InitializeException
public void start() throws org.refcodes.component.StartException
start
in interface org.refcodes.component.Startable
start
in class org.refcodes.component.LifeCycleAutomatonImpl
org.refcodes.component.StartException
public void pause() throws org.refcodes.component.PauseException
pause
in interface org.refcodes.component.Pausable
pause
in class org.refcodes.component.LifeCycleAutomatonImpl
org.refcodes.component.PauseException
public void resume() throws org.refcodes.component.ResumeException
resume
in interface org.refcodes.component.Resumable
resume
in class org.refcodes.component.LifeCycleAutomatonImpl
org.refcodes.component.ResumeException
public void stop() throws org.refcodes.component.StopException
stop
in interface org.refcodes.component.Stoppable
stop
in class org.refcodes.component.LifeCycleAutomatonImpl
org.refcodes.component.StopException
public void destroy()
destroy
in interface org.refcodes.component.Destroyable
destroy
in class org.refcodes.component.LifeCycleAutomatonImpl
Copyright © 2018. All rights reserved.