Class StateHolder<S,E>
java.lang.Object
org.springframework.statemachine.state.StateHolder<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
Utility class using holder pattern to keep a
State
reference.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
StateHolder
Instantiates a new state holder.- Parameters:
state
- the state
-
-
Method Details
-
getState
Gets the state.- Returns:
- the state
-
setState
Sets the state.- Parameters:
state
- the state
-