S
- the type of stateE
- the type of eventpublic abstract class StateMachineObjectSupport<S,E> extends LifecycleObjectSupport implements org.springframework.beans.factory.BeanNameAware
Modifier and Type | Class and Description |
---|---|
protected class |
StateMachineObjectSupport.StateMachineListenerRelay
This class is used to relay listener events from a submachines which works
as its own listener context.
|
Constructor and Description |
---|
StateMachineObjectSupport() |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart()
Subclasses may implement this method with the start behavior.
|
protected java.lang.String |
getBeanName()
Returns a bean name known to context per contract
with
BeanNameAware . |
protected CompositeStateMachineListener<S,E> |
getStateListener() |
protected StateMachineEventPublisher |
getStateMachineEventPublisher()
Gets the state machine event publisher.
|
protected StateMachineInterceptorList<S,E> |
getStateMachineInterceptors() |
protected void |
notifyEventNotAccepted(StateContext<S,E> stateContext) |
protected void |
notifyExtendedStateChanged(java.lang.Object key,
java.lang.Object value,
StateContext<S,E> stateContext) |
protected void |
notifyStateChanged(StateContext<S,E> stateContext) |
protected void |
notifyStateEntered(StateContext<S,E> stateContext) |
protected void |
notifyStateExited(StateContext<S,E> stateContext) |
protected void |
notifyStateMachineError(StateContext<S,E> stateContext) |
protected void |
notifyStateMachineStarted(StateContext<S,E> stateContext) |
protected void |
notifyStateMachineStopped(StateContext<S,E> stateContext) |
protected void |
notifyTransition(StateContext<S,E> stateContext) |
protected void |
notifyTransitionEnd(StateContext<S,E> stateContext) |
protected void |
notifyTransitionStart(StateContext<S,E> stateContext) |
void |
setBeanName(java.lang.String name) |
void |
setContextEventsEnabled(boolean contextEventsEnabled)
Set if context application events are enabled.
|
void |
setStateMachineEventPublisher(StateMachineEventPublisher stateMachineEventPublisher)
Sets the state machine event publisher.
|
protected void |
setStateMachineInterceptors(java.util.List<StateMachineInterceptor<S,E>> interceptors) |
protected void |
stateChangedInRelay() |
afterPropertiesSet, destroy, doDestroy, doStop, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, start, stop, stop
protected void doStart()
LifecycleObjectSupport
LifecycleObjectSupport.lifecycleLock
.doStart
in class LifecycleObjectSupport
public void setBeanName(java.lang.String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
protected java.lang.String getBeanName()
BeanNameAware
.protected StateMachineEventPublisher getStateMachineEventPublisher()
public void setStateMachineEventPublisher(StateMachineEventPublisher stateMachineEventPublisher)
stateMachineEventPublisher
- the new state machine event publisherpublic void setContextEventsEnabled(boolean contextEventsEnabled)
contextEventsEnabled
- the enabled flagprotected CompositeStateMachineListener<S,E> getStateListener()
protected void notifyStateChanged(StateContext<S,E> stateContext)
protected void notifyStateEntered(StateContext<S,E> stateContext)
protected void notifyStateExited(StateContext<S,E> stateContext)
protected void notifyEventNotAccepted(StateContext<S,E> stateContext)
protected void notifyTransitionStart(StateContext<S,E> stateContext)
protected void notifyTransition(StateContext<S,E> stateContext)
protected void notifyTransitionEnd(StateContext<S,E> stateContext)
protected void notifyStateMachineStarted(StateContext<S,E> stateContext)
protected void notifyStateMachineStopped(StateContext<S,E> stateContext)
protected void notifyStateMachineError(StateContext<S,E> stateContext)
protected void notifyExtendedStateChanged(java.lang.Object key, java.lang.Object value, StateContext<S,E> stateContext)
protected void stateChangedInRelay()
protected StateMachineInterceptorList<S,E> getStateMachineInterceptors()
protected void setStateMachineInterceptors(java.util.List<StateMachineInterceptor<S,E>> interceptors)