Class ObjectStateMachineFactory<S,E>
java.lang.Object
org.springframework.statemachine.support.LifecycleObjectSupport
org.springframework.statemachine.config.AbstractStateMachineFactory<S,E>
org.springframework.statemachine.config.ObjectStateMachineFactory<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
,StateMachineFactory<S,
,E> StateMachineReactiveLifecycle
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ConstructorDescriptionObjectStateMachineFactory
(StateMachineModel<S, E> defaultStateMachineModel) Instantiates a new object state machine factory.ObjectStateMachineFactory
(StateMachineModel<S, E> defaultStateMachineModel, StateMachineModelFactory<S, E> stateMachineModelFactory) Instantiates a new object state machine factory. -
Method Summary
Modifier and TypeMethodDescriptionprotected RegionState<S,
E> buildRegionStateInternal
(S id, Collection<Region<S, E>> regions, Collection<E> deferred, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> entryActions, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> exitActions, PseudoState<S, E> pseudoState, StateMachineModel<S, E> stateMachineModel) buildStateInternal
(S id, Collection<E> deferred, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> entryActions, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> exitActions, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> stateActions, PseudoState<S, E> pseudoState, StateMachineModel<S, E> stateMachineModel) protected StateMachine<S,
E> buildStateMachineInternal
(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, PseudoState<S, E> historyState, Boolean contextEventsEnabled, org.springframework.beans.factory.BeanFactory beanFactory, String beanName, String machineId, UUID uuid, StateMachineModel<S, E> stateMachineModel) Methods inherited from class org.springframework.statemachine.config.AbstractStateMachineFactory
getStateMachine, getStateMachine, getStateMachine, getStateMachine, resolveBeanFactory, resolveStateMachineModel, setBeanName, setContextEventsEnabled, setHandleAutostartup, setStateMachineMonitor
Methods inherited from class org.springframework.statemachine.support.LifecycleObjectSupport
afterPropertiesSet, destroy, doDestroy, doPostStartReactively, doPostStopReactively, doPreStartReactively, doPreStopReactively, getBeanFactory, getPhase, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, start, startReactively, stop, stopReactively
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.SmartLifecycle
stop
-
Constructor Details
-
ObjectStateMachineFactory
Instantiates a new object state machine factory.- Parameters:
defaultStateMachineModel
- the default state machine model
-
ObjectStateMachineFactory
public ObjectStateMachineFactory(StateMachineModel<S, E> defaultStateMachineModel, StateMachineModelFactory<S, E> stateMachineModelFactory) Instantiates a new object state machine factory.- Parameters:
defaultStateMachineModel
- the default state machine modelstateMachineModelFactory
- the state machine model factory
-
-
Method Details
-
buildStateMachineInternal
protected StateMachine<S,E> buildStateMachineInternal(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, PseudoState<S, E> historyState, Boolean contextEventsEnabled, org.springframework.beans.factory.BeanFactory beanFactory, String beanName, String machineId, UUID uuid, StateMachineModel<S, E> stateMachineModel) - Specified by:
buildStateMachineInternal
in classAbstractStateMachineFactory<S,
E>
-
buildStateInternal
protected State<S,E> buildStateInternal(S id, Collection<E> deferred, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> entryActions, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> exitActions, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> stateActions, PseudoState<S, E> pseudoState, StateMachineModel<S, E> stateMachineModel) - Specified by:
buildStateInternal
in classAbstractStateMachineFactory<S,
E>
-
buildRegionStateInternal
protected RegionState<S,E> buildRegionStateInternal(S id, Collection<Region<S, E>> regions, Collection<E> deferred, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> entryActions, Collection<Function<StateContext<S, E>, reactor.core.publisher.Mono<Void>>> exitActions, PseudoState<S, E> pseudoState, StateMachineModel<S, E> stateMachineModel) - Specified by:
buildRegionStateInternal
in classAbstractStateMachineFactory<S,
E>
-