S
- the type of stateE
- the type of eventpublic class ObjectStateMachineFactory<S,E> extends AbstractStateMachineFactory<S,E>
Constructor and Description |
---|
ObjectStateMachineFactory(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.
|
Modifier and Type | Method and Description |
---|---|
protected RegionState<S,E> |
buildRegionStateInternal(S id,
java.util.Collection<Region<S,E>> regions,
java.util.Collection<E> deferred,
java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> entryActions,
java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> exitActions,
PseudoState<S,E> pseudoState,
StateMachineModel<S,E> stateMachineModel) |
protected State<S,E> |
buildStateInternal(S id,
java.util.Collection<E> deferred,
java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> entryActions,
java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> exitActions,
java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> stateActions,
PseudoState<S,E> pseudoState,
StateMachineModel<S,E> stateMachineModel) |
protected 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,
java.lang.String beanName,
java.lang.String machineId,
java.util.UUID uuid,
StateMachineModel<S,E> stateMachineModel) |
getStateMachine, getStateMachine, getStateMachine, getStateMachine, resolveBeanFactory, resolveStateMachineModel, setBeanName, setContextEventsEnabled, setHandleAutostartup, setStateMachineMonitor
afterPropertiesSet, destroy, doDestroy, doPostStartReactively, doPostStopReactively, doPreStartReactively, doPreStopReactively, getBeanFactory, getPhase, isAutoStartup, isRunning, onInit, setAutoStartup, setBeanFactory, setPhase, start, startReactively, stop, stopReactively
public ObjectStateMachineFactory(StateMachineModel<S,E> defaultStateMachineModel)
defaultStateMachineModel
- the default state machine modelpublic ObjectStateMachineFactory(StateMachineModel<S,E> defaultStateMachineModel, StateMachineModelFactory<S,E> stateMachineModelFactory)
defaultStateMachineModel
- the default state machine modelstateMachineModelFactory
- the state machine model factoryprotected 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, java.lang.String beanName, java.lang.String machineId, java.util.UUID uuid, StateMachineModel<S,E> stateMachineModel)
buildStateMachineInternal
in class AbstractStateMachineFactory<S,E>
protected State<S,E> buildStateInternal(S id, java.util.Collection<E> deferred, java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> entryActions, java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> exitActions, java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> stateActions, PseudoState<S,E> pseudoState, StateMachineModel<S,E> stateMachineModel)
buildStateInternal
in class AbstractStateMachineFactory<S,E>
protected RegionState<S,E> buildRegionStateInternal(S id, java.util.Collection<Region<S,E>> regions, java.util.Collection<E> deferred, java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> entryActions, java.util.Collection<java.util.function.Function<StateContext<S,E>,reactor.core.publisher.Mono<java.lang.Void>>> exitActions, PseudoState<S,E> pseudoState, StateMachineModel<S,E> stateMachineModel)
buildRegionStateInternal
in class AbstractStateMachineFactory<S,E>