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.mixins.Initializeable.InitializeAutomaton
org.refcodes.component.mixins.InitializedAccessor.InitializedMutator, org.refcodes.component.mixins.InitializedAccessor.InitializedProperty
org.refcodes.component.mixins.Startable.StartAutomaton
org.refcodes.component.mixins.Pausable.PauseAutomaton
org.refcodes.component.mixins.Resumable.ResumeAutomaton
org.refcodes.component.mixins.RunningAccessor.RunningMutator, org.refcodes.component.mixins.RunningAccessor.RunningProperty
org.refcodes.component.mixins.Stoppable.StopAutomaton
Modifier and Type | Field and Description |
---|---|
protected static org.refcodes.logger.RuntimeLogger |
LOGGER |
Constructor and Description |
---|
ObservableLifeCycleRequestAutomatonImpl() |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.events.EventMetaData aEventMetaData) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.events.EventMetaData aEventMetaData,
ExecutorService aExecutorService,
org.refcodes.controlflow.consts.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.events.EventMetaData aEventMetaData,
Object aSource) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.events.EventMetaData aEventMetaData,
Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.consts.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(ExecutorService aExecutorService,
org.refcodes.controlflow.consts.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
org.refcodes.observer.events.EventMetaData aEventMetaData) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
org.refcodes.observer.events.EventMetaData aEventMetaData,
ExecutorService aExecutorService,
org.refcodes.controlflow.consts.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
org.refcodes.observer.events.EventMetaData aEventMetaData,
Object aSource) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
org.refcodes.observer.events.EventMetaData aEventMetaData,
Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.consts.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
ExecutorService aExecutorService,
org.refcodes.controlflow.consts.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
Object aSource) |
ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent,
Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.consts.ExecutionStrategy aExecutionStrategy) |
ObservableLifeCycleRequestAutomatonImpl(Object aSource) |
ObservableLifeCycleRequestAutomatonImpl(Object aSource,
ExecutorService aExecutorService,
org.refcodes.controlflow.consts.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.events.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.events.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.events.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.events.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.consts.ExecutionStrategy aExecutionStrategy)
aExecutorService
- The executor service to be used when firing
Event
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing Event
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleRequestAutomatonImpl(Object aSource, ExecutorService aExecutorService, org.refcodes.controlflow.consts.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
Event
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing Event
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.events.EventMetaData aEventMetaData, ExecutorService aExecutorService, org.refcodes.controlflow.consts.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
Event
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing Event
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleRequestAutomatonImpl(org.refcodes.observer.events.EventMetaData aEventMetaData, Object aSource, ExecutorService aExecutorService, org.refcodes.controlflow.consts.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
Event
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing Event
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent, ExecutorService aExecutorService, org.refcodes.controlflow.consts.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
Event
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing Event
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent, Object aSource, ExecutorService aExecutorService, org.refcodes.controlflow.consts.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
Event
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing Event
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent, org.refcodes.observer.events.EventMetaData aEventMetaData, ExecutorService aExecutorService, org.refcodes.controlflow.consts.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
Event
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing Event
instance (if null then the default
ExecutionStrategy.SEQUENTIAL
is used).public ObservableLifeCycleRequestAutomatonImpl(org.refcodes.component.LifeCycleComponent aLifeCycleComponent, org.refcodes.observer.events.EventMetaData aEventMetaData, Object aSource, ExecutorService aExecutorService, org.refcodes.controlflow.consts.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
Event
instances in multiple threads (if null then a
default one is used).aExecutionStrategy
- The ExecutionStrategy
to be used when
firing Event
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.exceptions.impls.InitializeException
initialize
in interface org.refcodes.component.mixins.Initializeable
initialize
in class org.refcodes.component.impls.LifeCycleAutomatonImpl
org.refcodes.component.exceptions.impls.InitializeException
public void start() throws org.refcodes.component.exceptions.impls.StartException
start
in interface org.refcodes.component.mixins.Startable
start
in class org.refcodes.component.impls.LifeCycleAutomatonImpl
org.refcodes.component.exceptions.impls.StartException
public void pause() throws org.refcodes.component.exceptions.impls.PauseException
pause
in interface org.refcodes.component.mixins.Pausable
pause
in class org.refcodes.component.impls.LifeCycleAutomatonImpl
org.refcodes.component.exceptions.impls.PauseException
public void resume() throws org.refcodes.component.exceptions.impls.ResumeException
resume
in interface org.refcodes.component.mixins.Resumable
resume
in class org.refcodes.component.impls.LifeCycleAutomatonImpl
org.refcodes.component.exceptions.impls.ResumeException
public void stop() throws org.refcodes.component.exceptions.impls.StopException
stop
in interface org.refcodes.component.mixins.Stoppable
stop
in class org.refcodes.component.impls.LifeCycleAutomatonImpl
org.refcodes.component.exceptions.impls.StopException
public void destroy()
destroy
in interface org.refcodes.component.mixins.Destroyable
destroy
in class org.refcodes.component.impls.LifeCycleAutomatonImpl
Copyright © 2015. All rights reserved.