S - the type of stateE - the type of eventpublic abstract class AbstractStateMachineFactory<S,E> extends LifecycleObjectSupport implements StateMachineFactory<S,E>
StateMachineFactory implementation using enums to build StateMachines.| Constructor and Description |
|---|
AbstractStateMachineFactory(StateMachineConfigurationConfig<S,E> stateMachineConfigurationConfig,
StateMachineTransitions<S,E> stateMachineTransitions,
StateMachineStates<S,E> stateMachineStates)
Instantiates a new enum state machine factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract RegionState<S,E> |
buildRegionStateInternal(S id,
java.util.Collection<Region<S,E>> regions,
java.util.Collection<E> deferred,
java.util.Collection<? extends Action<S,E>> entryActions,
java.util.Collection<? extends Action<S,E>> exitActions,
PseudoState<S,E> pseudoState) |
protected abstract State<S,E> |
buildStateInternal(S id,
java.util.Collection<E> deferred,
java.util.Collection<? extends Action<S,E>> entryActions,
java.util.Collection<? extends Action<S,E>> exitActions,
PseudoState<S,E> pseudoState) |
protected abstract StateMachine<S,E> |
buildStateMachineInternal(java.util.Collection<State<S,E>> states,
java.util.Collection<Transition<S,E>> transitions,
State<S,E> initialState,
Transition<S,E> initialTransition,
org.springframework.messaging.Message<E> initialEvent,
ExtendedState extendedState,
PseudoState<S,E> historyState,
java.lang.Boolean contextEventsEnabled,
org.springframework.beans.factory.BeanFactory beanFactory,
org.springframework.core.task.TaskExecutor taskExecutor,
org.springframework.scheduling.TaskScheduler taskScheduler) |
StateMachine<S,E> |
getStateMachine()
Build a new
StateMachine instance. |
void |
setContextEventsEnabled(java.lang.Boolean contextEvents) |
void |
setHandleAutostartup(boolean handleAutostartup) |
afterPropertiesSet, doStart, doStop, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, start, stop, stoppublic AbstractStateMachineFactory(StateMachineConfigurationConfig<S,E> stateMachineConfigurationConfig, StateMachineTransitions<S,E> stateMachineTransitions, StateMachineStates<S,E> stateMachineStates)
stateMachineConfigurationConfig - the state machine generic configstateMachineTransitions - the state machine transitionsstateMachineStates - the state machine statespublic StateMachine<S,E> getStateMachine()
StateMachineFactoryStateMachine instance.getStateMachine in interface StateMachineFactory<S,E>public void setHandleAutostartup(boolean handleAutostartup)
public void setContextEventsEnabled(java.lang.Boolean contextEvents)
protected abstract StateMachine<S,E> buildStateMachineInternal(java.util.Collection<State<S,E>> states, java.util.Collection<Transition<S,E>> transitions, State<S,E> initialState, Transition<S,E> initialTransition, org.springframework.messaging.Message<E> initialEvent, ExtendedState extendedState, PseudoState<S,E> historyState, java.lang.Boolean contextEventsEnabled, org.springframework.beans.factory.BeanFactory beanFactory, org.springframework.core.task.TaskExecutor taskExecutor, org.springframework.scheduling.TaskScheduler taskScheduler)
protected abstract State<S,E> buildStateInternal(S id, java.util.Collection<E> deferred, java.util.Collection<? extends Action<S,E>> entryActions, java.util.Collection<? extends Action<S,E>> exitActions, PseudoState<S,E> pseudoState)
protected abstract RegionState<S,E> buildRegionStateInternal(S id, java.util.Collection<Region<S,E>> regions, java.util.Collection<E> deferred, java.util.Collection<? extends Action<S,E>> entryActions, java.util.Collection<? extends Action<S,E>> exitActions, PseudoState<S,E> pseudoState)