Package org.springframework.statemachine
Class ObjectStateMachine<S,E>
java.lang.Object
org.springframework.statemachine.support.LifecycleObjectSupport
org.springframework.statemachine.support.StateMachineObjectSupport<S,E>
org.springframework.statemachine.support.AbstractStateMachine<S,E>
org.springframework.statemachine.ObjectStateMachine<S,E>
- Type Parameters:
S- the type of stateE- the type of event
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle,ReactiveStateMachineAccess<S,,E> StateMachineAccess<S,,E> Region<S,,E> StateMachine<S,,E> StateMachineReactiveLifecycle
Specialisation of a
StateMachine using objects
as its State and event types.- Author:
- Janne Valkealahti
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.statemachine.support.StateMachineObjectSupport
StateMachineObjectSupport.StateMachineListenerRelay -
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionObjectStateMachine(Collection<State<S, E>> states, Collection<Transition<S, E>> transitions, State<S, E> initialState) Instantiates a new enum state machine.ObjectStateMachine(Collection<State<S, E>> states, Collection<Transition<S, E>> transitions, State<S, E> initialState, Transition<S, E> initialTransition, org.springframework.messaging.Message<E> initialEvent, ExtendedState extendedState, UUID uuid) Instantiates a new enum state machine. -
Method Summary
Methods inherited from class org.springframework.statemachine.support.AbstractStateMachine
addStateListener, addStateMachineInterceptor, addStateMachineMonitor, doDestroy, doPostStartReactively, doPreStartReactively, doPreStopReactively, executeTriggerlessTransitions, getExtendedState, getHistoryState, getId, getInitialState, getState, getStateMachineAccessor, getStateMachineExecutor, getStates, getTransitions, getUuid, hasStateMachineError, isComplete, notifyEventNotAccepted, onInit, removeStateListener, resetStateMachine, resetStateMachineReactively, sendEvent, sendEvent, sendEvent, sendEventCollect, sendEvents, setBeanFactory, setForwardedInitialEvent, setHistoryState, setId, setInitialEnabled, setParentMachine, setRelay, setStateMachineError, setTransitionConflightPolicy, toStringMethods inherited from class org.springframework.statemachine.support.StateMachineObjectSupport
doStart, getBeanName, getStateListener, getStateMachineEventPublisher, getStateMachineInterceptors, getStateMachineMonitor, notifyActionMonitor, notifyExtendedStateChanged, notifyStateChanged, notifyStateEntered, notifyStateExited, notifyStateMachineError, notifyStateMachineStarted, notifyStateMachineStopped, notifyTransition, notifyTransitionEnd, notifyTransitionMonitor, notifyTransitionStart, setBeanName, setContextEventsEnabled, setStateMachineEventPublisher, setStateMachineInterceptorsMethods inherited from class org.springframework.statemachine.support.LifecycleObjectSupport
afterPropertiesSet, destroy, doPostStopReactively, getBeanFactory, getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, start, startReactively, stop, stopReactivelyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.context.SmartLifecycle
stopMethods inherited from interface org.springframework.statemachine.support.StateMachineReactiveLifecycle
startReactively, stopReactively
-
Constructor Details
-
ObjectStateMachine
public ObjectStateMachine(Collection<State<S, E>> states, Collection<Transition<S, E>> transitions, State<S, E> initialState) Instantiates a new enum state machine.- Parameters:
states- the statestransitions- the transitionsinitialState- the initial state
-
ObjectStateMachine
public ObjectStateMachine(Collection<State<S, E>> states, Collection<Transition<S, E>> transitions, State<S, E> initialState, Transition<S, E> initialTransition, org.springframework.messaging.Message<E> initialEvent, ExtendedState extendedState, UUID uuid) Instantiates a new enum state machine.- Parameters:
states- the statestransitions- the transitionsinitialState- the initial stateinitialTransition- the initial transitioninitialEvent- the initial eventextendedState- the extended stateuuid- the given uuid.
-