Class StateMachineModelBuilder<S,E>
java.lang.Object
org.springframework.statemachine.config.common.annotation.AbstractAnnotationBuilder<O>
org.springframework.statemachine.config.common.annotation.AbstractConfiguredAnnotationBuilder<ModelData<S,E>,StateMachineModelConfigurer<S,E>,StateMachineModelBuilder<S,E>>
org.springframework.statemachine.config.builders.StateMachineModelBuilder<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
StateMachineModelConfigurer<S,
,E> AnnotationBuilder<ModelData<S,
E>>
public class StateMachineModelBuilder<S,E>
extends AbstractConfiguredAnnotationBuilder<ModelData<S,E>,StateMachineModelConfigurer<S,E>,StateMachineModelBuilder<S,E>>
implements StateMachineModelConfigurer<S,E>
-
Constructor Summary
ConstructorDescriptionInstantiates a new state machine model builder.StateMachineModelBuilder
(ObjectPostProcessor<Object> objectPostProcessor) Instantiates a new state machine model builder.StateMachineModelBuilder
(ObjectPostProcessor<Object> objectPostProcessor, boolean allowConfigurersOfSameType) Instantiates a new state machine model builder. -
Method Summary
Modifier and TypeMethodDescriptionSubclasses must implement this method to build the object that is being returned.void
Gets a configurer for model.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
-
StateMachineModelBuilder
public StateMachineModelBuilder()Instantiates a new state machine model builder. -
StateMachineModelBuilder
public StateMachineModelBuilder(ObjectPostProcessor<Object> objectPostProcessor, boolean allowConfigurersOfSameType) Instantiates a new state machine model builder.- Parameters:
objectPostProcessor
- the object post processorallowConfigurersOfSameType
- the allow configurers of same type
-
StateMachineModelBuilder
Instantiates a new state machine model builder.- Parameters:
objectPostProcessor
- the object post processor
-
-
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<ModelData<S,
E>, StateMachineModelConfigurer<S, E>, StateMachineModelBuilder<S, E>> - Returns:
- Object build by this builder
- Throws:
Exception
- if error occurred
-
withModel
Description copied from interface:StateMachineModelConfigurer
Gets a configurer for model.- Specified by:
withModel
in interfaceStateMachineModelConfigurer<S,
E> - Returns:
ModelConfigurer
for chaining- Throws:
Exception
- if configuration error happens
-
setStateMachineModelFactory
-