S - the type of stateE - the type of eventpublic abstract class StateMachineObjectSupport<S,E> extends LifecycleObjectSupport
| 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 CompositeStateMachineListener<S,E> |
getStateListener() |
protected StateMachineEventPublisher |
getStateMachineEventPublisher()
Gets the state machine event publisher.
|
protected void |
notifyStateChanged(State<S,E> source,
State<S,E> target) |
protected void |
notifyStateEntered(State<S,E> state) |
protected void |
notifyStateExited(State<S,E> state) |
protected void |
notifyStateMachineStarted(StateMachine<S,E> stateMachine) |
protected void |
notifyStateMachineStopped(StateMachine<S,E> stateMachine) |
protected void |
notifyTransition(Transition<S,E> transition) |
protected void |
notifyTransitionEnd(Transition<S,E> transition) |
protected void |
notifyTransitionStart(Transition<S,E> transition) |
void |
setContextEventsEnabled(boolean contextEventsEnabled)
Set if context application events are enabled.
|
void |
setStateMachineEventPublisher(StateMachineEventPublisher stateMachineEventPublisher)
Sets the state machine event publisher.
|
protected void |
stateChangedInRelay() |
afterPropertiesSet, doStart, doStop, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, start, stop, stopprotected 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 notifyTransitionStart(Transition<S,E> transition)
protected void notifyTransition(Transition<S,E> transition)
protected void notifyTransitionEnd(Transition<S,E> transition)
protected void notifyStateMachineStarted(StateMachine<S,E> stateMachine)
protected void notifyStateMachineStopped(StateMachine<S,E> stateMachine)
protected void stateChangedInRelay()