public class ObservableLifeCycleRequestAutomatonImpl extends LifeCycleAutomatonImpl implements ObservableLifeCycleAutomaton.ObservableLifeCycleRequestAutomaton
ObservableLifeCycleAutomaton
interface
with the according hook methods for you to create your domain driven
ObservableLifeCycleAutomaton
.LifeCycleComponent.LifeCycleAutomaton, LifeCycleComponent.UncheckedLifeCycleComponent
Initializable.InitializeAutomaton, Initializable.InitializeBuilder<B extends Initializable.InitializeBuilder<B>>, Initializable.UncheckedInitializable
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
Modifier and Type | Field and Description |
---|---|
protected static org.refcodes.logger.RuntimeLogger |
LOGGER |
Constructor and Description |
---|
ObservableLifeCycleRequestAutomatonImpl() |
ObservableLifeCycleRequestAutomatonImpl(EventMetaData aEventMetaData) |
ObservableLifeCycleRequestAutomatonImpl(EventMetaData aEventMetaData,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(EventMetaData aEventMetaData,
Object aSource) |
ObservableLifeCycleRequestAutomatonImpl(EventMetaData aEventMetaData,
Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(LifeCycleComponent aLifeCycleComponent) |
ObservableLifeCycleRequestAutomatonImpl(LifeCycleComponent aLifeCycleComponent,
EventMetaData aEventMetaData) |
ObservableLifeCycleRequestAutomatonImpl(LifeCycleComponent aLifeCycleComponent,
EventMetaData aEventMetaData,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(LifeCycleComponent aLifeCycleComponent,
EventMetaData aEventMetaData,
Object aSource) |
ObservableLifeCycleRequestAutomatonImpl(LifeCycleComponent aLifeCycleComponent,
EventMetaData aEventMetaData,
Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(LifeCycleComponent aLifeCycleComponent,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(LifeCycleComponent aLifeCycleComponent,
Object aSource) |
ObservableLifeCycleRequestAutomatonImpl(LifeCycleComponent aLifeCycleComponent,
Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(Object aSource) |
ObservableLifeCycleRequestAutomatonImpl(Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
boolean |
hasObserverSubscription(LifeCycleObserver.LifeCycleRequestObserver aObserver) |
void |
initialize() |
void |
pause() |
void |
resume() |
void |
start() |
void |
stop() |
boolean |
subscribeObserver(LifeCycleObserver.LifeCycleRequestObserver aObserver) |
boolean |
unsubscribeObserver(LifeCycleObserver.LifeCycleRequestObserver aObserver) |
getLifeCycleComponent, getLifeCycleStatus, isDestroyable, isDestroyed, isInitalizable, isInitialized, isPausable, isPaused, isResumable, isRunning, isStartable, isStoppable, isStopped
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(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(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(LifeCycleComponent aLifeCycleComponent)
aLifeCycleComponent
- The LifeCycleComponent
to which the
life-cycle method calls are to be delegated to.public ObservableLifeCycleRequestAutomatonImpl(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(LifeCycleComponent aLifeCycleComponent, 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(LifeCycleComponent aLifeCycleComponent, 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
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 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
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 ObservableLifeCycleRequestAutomatonImpl(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 ObservableLifeCycleRequestAutomatonImpl(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 ObservableLifeCycleRequestAutomatonImpl(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 ObservableLifeCycleRequestAutomatonImpl(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 ObservableLifeCycleRequestAutomatonImpl(LifeCycleComponent aLifeCycleComponent, 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 ObservableLifeCycleRequestAutomatonImpl(LifeCycleComponent aLifeCycleComponent, 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.LifeCycleRequestObserver aObserver)
hasObserverSubscription
in interface Observable<LifeCycleObserver.LifeCycleRequestObserver>
public boolean subscribeObserver(LifeCycleObserver.LifeCycleRequestObserver aObserver)
subscribeObserver
in interface Observable<LifeCycleObserver.LifeCycleRequestObserver>
public boolean unsubscribeObserver(LifeCycleObserver.LifeCycleRequestObserver aObserver)
unsubscribeObserver
in interface Observable<LifeCycleObserver.LifeCycleRequestObserver>
public void initialize() throws InitializeException
initialize
in interface Initializable
initialize
in class LifeCycleAutomatonImpl
InitializeException
public void start() throws StartException
start
in interface Startable
start
in class LifeCycleAutomatonImpl
StartException
public void pause() throws PauseException
pause
in interface Pausable
pause
in class LifeCycleAutomatonImpl
PauseException
public void resume() throws ResumeException
resume
in interface Resumable
resume
in class LifeCycleAutomatonImpl
ResumeException
public void stop() throws StopException
stop
in interface Stoppable
stop
in class LifeCycleAutomatonImpl
StopException
public void destroy()
destroy
in interface Destroyable
destroy
in class LifeCycleAutomatonImpl
Copyright © 2015. All rights reserved.