Class StateMachineBuilder.Builder<S,E>
java.lang.Object
org.springframework.statemachine.config.StateMachineBuilder.Builder<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- Enclosing class:
- StateMachineBuilder
Builder
implementation handling logic of building
a StateMachine
manually.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aStateMachine
.Configure configuration.Configure model.Configure states.Configure transitions.Creates aStateMachineFactory
from builder
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
configureModel
Configure model.- Returns:
- the state machine model configurer
-
configureConfiguration
Configure configuration.- Returns:
- the state machine configuration configurer
-
configureStates
Configure states.- Returns:
- the state machine state configurer
-
configureTransitions
Configure transitions.- Returns:
- the state machine transition configurer
-
createFactory
Creates aStateMachineFactory
from builder- Returns:
- the factory to create a state machine
-
build
Builds aStateMachine
.- Returns:
- the state machine
-