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>
- Author:
- Janne Valkealahti
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates 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.voidGets 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, setSharedObjectMethods 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:AbstractConfiguredAnnotationBuilderSubclasses must implement this method to build the object that is being returned.- Specified by:
performBuildin 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:StateMachineModelConfigurerGets a configurer for model.- Specified by:
withModelin interfaceStateMachineModelConfigurer<S,E> - Returns:
ModelConfigurerfor chaining- Throws:
Exception- if configuration error happens
-
setStateMachineModelFactory
-