Class HistoryPseudoState<S,E>
java.lang.Object
org.springframework.statemachine.state.AbstractPseudoState<S,E>
org.springframework.statemachine.state.HistoryPseudoState<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
PseudoState<S,
E>
History implementation of a
PseudoState
.- Author:
- Janne Valkealahti
-
Constructor Summary
ConstructorDescriptionHistoryPseudoState
(PseudoStateKind kind, StateHolder<S, E> containingState) Instantiates a new history pseudo state.HistoryPseudoState
(PseudoStateKind kind, StateHolder<S, E> defaultState, StateHolder<S, E> containingState) Instantiates a new history pseudo state. -
Method Summary
Modifier and TypeMethodDescriptionentry
(StateContext<S, E> context) Initiate an entry sequence for the state and return a next state where state machine should go.getState()
Gets the current recorded state.void
Sets the current recorded state.Methods inherited from class org.springframework.statemachine.state.AbstractPseudoState
addPseudoStateListener, exit, getKind, notifyContext, setPseudoStateListeners
-
Constructor Details
-
HistoryPseudoState
Instantiates a new history pseudo state.- Parameters:
kind
- the kindcontainingState
- the parent containing state
-
HistoryPseudoState
public HistoryPseudoState(PseudoStateKind kind, StateHolder<S, E> defaultState, StateHolder<S, E> containingState) Instantiates a new history pseudo state.- Parameters:
kind
- the kinddefaultState
- the default history statecontainingState
- the parent containing state
-
-
Method Details
-
entry
Description copied from interface:PseudoState
Initiate an entry sequence for the state and return a next state where state machine should go.- Specified by:
entry
in interfacePseudoState<S,
E> - Overrides:
entry
in classAbstractPseudoState<S,
E> - Parameters:
context
- the context- Returns:
- the next state or null
-
setState
Sets the current recorded state.- Parameters:
state
- the state
-
getState
Gets the current recorded state.- Returns:
- the current recorded state.
-