public class ObservableLifeCycleAutomatonImpl extends LifeCycleAutomatonImpl implements ObservableLifeCycleAutomaton
ObservableLifeCycleAutomaton
interface
with the according hook methods for you to create your domain driven
ObservableLifeCycleAutomaton
.ObservableLifeCycleAutomaton.ObservableLifeCycleRequestAutomaton
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 |
---|
ObservableLifeCycleAutomatonImpl() |
ObservableLifeCycleAutomatonImpl(EventMetaData aEventMetaData) |
ObservableLifeCycleAutomatonImpl(EventMetaData aEventMetaData,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleAutomatonImpl(EventMetaData aEventMetaData,
Object aSource) |
ObservableLifeCycleAutomatonImpl(EventMetaData aEventMetaData,
Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleAutomatonImpl(ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleAutomatonImpl(LifeCycleComponent aLifeCycleComponent) |
ObservableLifeCycleAutomatonImpl(LifeCycleComponent aLifeCycleComponent,
EventMetaData aEventMetaData) |
ObservableLifeCycleAutomatonImpl(LifeCycleComponent aLifeCycleComponent,
EventMetaData aEventMetaData,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleAutomatonImpl(LifeCycleComponent aLifeCycleComponent,
EventMetaData aEventMetaData,
Object aSource) |
ObservableLifeCycleAutomatonImpl(LifeCycleComponent aLifeCycleComponent,
EventMetaData aEventMetaData,
Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleAutomatonImpl(LifeCycleComponent aLifeCycleComponent,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleAutomatonImpl(LifeCycleComponent aLifeCycleComponent,
Object aSource) |
ObservableLifeCycleAutomatonImpl(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isInitalizable
isInitialized
isStartable
isPausable, isPaused
isResumable
isRunning
isStoppable, isStopped
isDestroyable, isDestroyed
getLifeCycleStatus
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(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(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(LifeCycleComponent aLifeCycleComponent)
aLifeCycleComponent
- The LifeCycleComponent
to which the
life-cycle method calls are to be delegated to.public ObservableLifeCycleAutomatonImpl(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(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 ObservableLifeCycleAutomatonImpl(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 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(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(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(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(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(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 ObservableLifeCycleAutomatonImpl(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 aObserver)
hasObserverSubscription
in interface Observable<LifeCycleObserver>
public boolean subscribeObserver(LifeCycleObserver aObserver)
subscribeObserver
in interface Observable<LifeCycleObserver>
public boolean unsubscribeObserver(LifeCycleObserver aObserver)
unsubscribeObserver
in interface Observable<LifeCycleObserver>
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.