public class ObservableLifeCycleRequestAutomatonImpl extends org.refcodes.component.impls.LifeCycleAutomatonImpl implements ObservableLifeCycleAutomaton.ObservableLifeCycleRequestAutomaton
ObservableLifeCycleAutomaton
interface
with the according hook methods for you to create your domain driven
ObservableLifeCycleAutomaton
.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 |
---|
ObservableLifeCycleRequestAutomatonImpl() |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData,
Object aSource) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.EventMetaData aEventMetaData,
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,
org.refcodes.observer.EventMetaData aEventMetaData) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
org.refcodes.observer.EventMetaData aEventMetaData,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
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,
ExecutorService aExecutorService,
org.refcodes.controlflow.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
Object aSource) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.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) |
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
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(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 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
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(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 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
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(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 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
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 org.refcodes.observer.Observable<LifeCycleObserver.LifeCycleRequestObserver>
public boolean subscribeObserver(LifeCycleObserver.LifeCycleRequestObserver aObserver)
subscribeObserver
in interface org.refcodes.observer.Observable<LifeCycleObserver.LifeCycleRequestObserver>
public boolean unsubscribeObserver(LifeCycleObserver.LifeCycleRequestObserver aObserver)
unsubscribeObserver
in interface org.refcodes.observer.Observable<LifeCycleObserver.LifeCycleRequestObserver>
public void initialize() throws org.refcodes.component.InitializeException
initialize
in interface org.refcodes.component.Initializable
initialize
in class org.refcodes.component.impls.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.impls.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.impls.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.impls.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.impls.LifeCycleAutomatonImpl
org.refcodes.component.StopException
public void destroy()
destroy
in interface org.refcodes.component.Destroyable
destroy
in class org.refcodes.component.impls.LifeCycleAutomatonImpl
Copyright © 2016. All rights reserved.