Class StateMachineStateBuilder<S,E>
java.lang.Object
org.springframework.statemachine.config.common.annotation.AbstractAnnotationBuilder<O>
org.springframework.statemachine.config.common.annotation.AbstractConfiguredAnnotationBuilder<StatesData<S,E>,StateMachineStateConfigurer<S,E>,StateMachineStateBuilder<S,E>>
org.springframework.statemachine.config.builders.StateMachineStateBuilder<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
StateMachineStateConfigurer<S,
,E> AnnotationBuilder<StatesData<S,
E>>
public class StateMachineStateBuilder<S,E>
extends AbstractConfiguredAnnotationBuilder<StatesData<S,E>,StateMachineStateConfigurer<S,E>,StateMachineStateBuilder<S,E>>
implements StateMachineStateConfigurer<S,E>
- Author:
- Janne Valkealahti
-
Constructor Summary
ConstructorDescriptionStateMachineStateBuilder
(ObjectPostProcessor<Object> objectPostProcessor) StateMachineStateBuilder
(ObjectPostProcessor<Object> objectPostProcessor, boolean allowConfigurersOfSameType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStateData
(Collection<StateData<S, E>> stateDatas) protected StatesData<S,
E> Subclasses must implement this method to build the object that is being returned.Gets a configurer for states.Methods inherited from class org.springframework.statemachine.config.common.annotation.AbstractConfiguredAnnotationBuilder
apply, beforeConfigureMains, beforeConfigurePosts, beforeInit, doBuild, getConfigurer, getConfigurers, getOrApply, getOrBuild, getSharedObject, getSharedObjects, objectPostProcessor, postProcess, removeConfigurer, removeConfigurers, setSharedObject
Methods inherited from class org.springframework.statemachine.config.common.annotation.AbstractAnnotationBuilder
build, getObject
-
Constructor Details
-
StateMachineStateBuilder
public StateMachineStateBuilder() -
StateMachineStateBuilder
public StateMachineStateBuilder(ObjectPostProcessor<Object> objectPostProcessor, boolean allowConfigurersOfSameType) -
StateMachineStateBuilder
-
-
Method Details
-
performBuild
Description copied from class:AbstractConfiguredAnnotationBuilder
Subclasses must implement this method to build the object that is being returned.- Specified by:
performBuild
in classAbstractConfiguredAnnotationBuilder<StatesData<S,
E>, StateMachineStateConfigurer<S, E>, StateMachineStateBuilder<S, E>> - Returns:
- Object build by this builder
- Throws:
Exception
- if error occurred
-
withStates
Description copied from interface:StateMachineStateConfigurer
Gets a configurer for states.- Specified by:
withStates
in interfaceStateMachineStateConfigurer<S,
E> - Returns:
StateConfigurer
for chaining- Throws:
Exception
- if configuration error happens
-
addStateData
-