S - the type of stateE - the type of eventpublic class EnumStateMachineFactory<S extends java.lang.Enum<S>,E extends java.lang.Enum<E>> extends LifecycleObjectSupport implements StateMachineFactory<S,E>
StateMachineFactory implementation using enums to build StateMachines.| Constructor and Description |
|---|
EnumStateMachineFactory(StateMachineTransitions<S,E> stateMachineTransitions,
StateMachineStates<S,E> stateMachineStates)
Instantiates a new enum state machine factory.
|
| Modifier and Type | Method and Description |
|---|---|
StateMachine<S,E> |
getStateMachine()
Build a new
StateMachine instance. |
void |
setContextEventsEnabled(java.lang.Boolean contextEvents) |
afterPropertiesSet, doStart, doStop, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, start, stop, stoppublic EnumStateMachineFactory(StateMachineTransitions<S,E> stateMachineTransitions, StateMachineStates<S,E> stateMachineStates)
stateMachineTransitions - the state machine transitionsstateMachineStates - the state machine statespublic StateMachine<S,E> getStateMachine()
StateMachineFactoryStateMachine instance.getStateMachine in interface StateMachineFactory<S extends java.lang.Enum<S>,E extends java.lang.Enum<E>>public void setContextEventsEnabled(java.lang.Boolean contextEvents)