ObservableLifeCycleRequestAutomaton
, org.refcodes.observer.Observable<LifeCycleRequestObserver>
public class ObservableLifeCycleRequestAutomatonImpl extends org.refcodes.component.LifeCycleAutomatonImpl implements ObservableLifeCycleRequestAutomaton
ObservableLifeCycleStatusAutomaton
interface with the according hook methods for you to create your domain
driven ObservableLifeCycleStatusAutomaton
.org.refcodes.component.Destroyable.DestroyAutomaton
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.LifeCycleAutomatonImpl.ManualLifeCycleAutomatonImpl
org.refcodes.component.LifeCycleComponent.LifeCycleAutomaton, org.refcodes.component.LifeCycleComponent.UncheckedLifeCycleComponent
org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusBuilder<B extends org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusBuilder<B>>, org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusMutator, org.refcodes.component.LifeCycleStatusAccessor.LifeCycleStatusProperty
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
Modifier and Type | Field | Description |
---|---|---|
protected static org.refcodes.logger.RuntimeLogger |
LOGGER |
Constructor | Description |
---|---|
ObservableLifeCycleRequestAutomatonImpl() |
Instantiates a new observable life cycle request automaton impl.
|
ObservableLifeCycleRequestAutomatonImpl(Object aSource) |
|
ObservableLifeCycleRequestAutomatonImpl(Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
|
ObservableLifeCycleRequestAutomatonImpl(ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
|
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent) |
|
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
Object aSource) |
|
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
|
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
|
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
org.refcodes.observer.EventMetaData aEventMetaData) |
|
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
org.refcodes.observer.EventMetaData aEventMetaData,
Object aSource) |
|
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
org.refcodes.observer.EventMetaData aEventMetaData,
Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
|
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
org.refcodes.observer.EventMetaData aEventMetaData,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
|
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData) |
|
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData,
Object aSource) |
|
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData,
Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
|
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
Modifier and Type | Method | Description |
---|---|---|
void |
destroy() |
|
boolean |
hasObserverSubscription(LifeCycleRequestObserver aObserver) |
|
void |
initialize() |
|
void |
pause() |
|
void |
resume() |
|
void |
start() |
|
void |
stop() |
|
boolean |
subscribeObserver(LifeCycleRequestObserver aObserver) |
|
boolean |
unsubscribeObserver(LifeCycleRequestObserver aObserver) |
getLifeCycleComponent, getLifeCycleStatus, isDestroyable, isDestroyed, isInitalizable, isInitialized, isPausable, isPaused, isResumable, isRunning, isStartable, isStoppable, isStopped, setLifeCycleStatus
public ObservableLifeCycleRequestAutomatonImpl()
public ObservableLifeCycleRequestAutomatonImpl(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 ObservableLifeCycleRequestAutomatonImpl(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 ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData, Object aSource)
aSource
- The source instance to be used when firing events in case
the source is to be different from this class' instance.aEventMetaData
- The EventMetaData
to be used when firing
events in case the EventMetaData
is to be different from
the auto-generated EventMetaData
.public ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent)
aLifeCycleComponent
- The LifeCycleComponent
to which the
life-cycle method calls are to be delegated to.public ObservableLifeCycleRequestAutomatonImpl(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 ObservableLifeCycleRequestAutomatonImpl(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 ObservableLifeCycleRequestAutomatonImpl(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 ObservableLifeCycleRequestAutomatonImpl(ExecutorService aExecutorService, org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy)
aExecutorService
- The executor service to be used when firing
GenericActionEvent
instances in multiple threads (if null
then a default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing GenericActionEvent
instance (if null then the
default ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleRequestAutomatonImpl(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
GenericActionEvent
instances in multiple threads (if null
then a default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing GenericActionEvent
instance (if null then the
default ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleRequestAutomatonImpl(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
GenericActionEvent
instances in multiple threads (if null
then a default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing GenericActionEvent
instance (if null then the
default ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleRequestAutomatonImpl(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
GenericActionEvent
instances in multiple threads (if null
then a default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing GenericActionEvent
instance (if null then the
default ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleRequestAutomatonImpl(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
GenericActionEvent
instances in multiple threads (if null
then a default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing GenericActionEvent
instance (if null then the
default ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleRequestAutomatonImpl(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
GenericActionEvent
instances in multiple threads (if null
then a default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing GenericActionEvent
instance (if null then the
default ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleRequestAutomatonImpl(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
GenericActionEvent
instances in multiple threads (if null
then a default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing GenericActionEvent
instance (if null then the
default ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleRequestAutomatonImpl(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
GenericActionEvent
instances in multiple threads (if null
then a default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing GenericActionEvent
instance (if null then the
default ExecutionStrategy.SEQUENTIAL
is used).public boolean hasObserverSubscription(LifeCycleRequestObserver aObserver)
hasObserverSubscription
in interface org.refcodes.observer.Observable<LifeCycleRequestObserver>
public boolean subscribeObserver(LifeCycleRequestObserver aObserver)
subscribeObserver
in interface org.refcodes.observer.Observable<LifeCycleRequestObserver>
public boolean unsubscribeObserver(LifeCycleRequestObserver aObserver)
unsubscribeObserver
in interface org.refcodes.observer.Observable<LifeCycleRequestObserver>
public void initialize() throws org.refcodes.component.InitializeException
initialize
in class org.refcodes.component.LifeCycleAutomatonImpl
org.refcodes.component.InitializeException
public void start() throws org.refcodes.component.StartException
start
in class org.refcodes.component.LifeCycleAutomatonImpl
org.refcodes.component.StartException
public void pause() throws org.refcodes.component.PauseException
pause
in class org.refcodes.component.LifeCycleAutomatonImpl
org.refcodes.component.PauseException
public void resume() throws org.refcodes.component.ResumeException
resume
in class org.refcodes.component.LifeCycleAutomatonImpl
org.refcodes.component.ResumeException
public void stop() throws org.refcodes.component.StopException
stop
in class org.refcodes.component.LifeCycleAutomatonImpl
org.refcodes.component.StopException
public void destroy()
destroy
in class org.refcodes.component.LifeCycleAutomatonImpl
Copyright © 2018. All rights reserved.