Class DefaultModelConfigurer<S,E>
java.lang.Object
org.springframework.statemachine.config.common.annotation.AnnotationConfigurerAdapter<ModelData<S,E>,StateMachineModelConfigurer<S,E>,StateMachineModelBuilder<S,E>>
org.springframework.statemachine.config.configurers.DefaultModelConfigurer<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
AnnotationConfigurer<ModelData<S,
,E>, StateMachineModelBuilder<S, E>> AnnotationConfigurerBuilder<StateMachineModelConfigurer<S,
,E>> ModelConfigurer<S,
E>
public class DefaultModelConfigurer<S,E>
extends AnnotationConfigurerAdapter<ModelData<S,E>,StateMachineModelConfigurer<S,E>,StateMachineModelBuilder<S,E>>
implements ModelConfigurer<S,E>
Default implementation of a
ModelConfigurer
.- Author:
- Janne Valkealahti
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(StateMachineModelBuilder<S, E> builder) Configure theAnnotationBuilder
by setting the necessary properties on theAnnotationBuilder
.factory
(StateMachineModelFactory<S, E> factory) Specify a state machine model factory.Methods inherited from class org.springframework.statemachine.config.common.annotation.AnnotationConfigurerAdapter
addObjectPostProcessor, and, getBuilder, init, isAssignable, setBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.statemachine.config.common.annotation.AnnotationConfigurerBuilder
and
-
Constructor Details
-
DefaultModelConfigurer
public DefaultModelConfigurer()
-
-
Method Details
-
configure
Description copied from interface:AnnotationConfigurer
Configure theAnnotationBuilder
by setting the necessary properties on theAnnotationBuilder
.- Specified by:
configure
in interfaceAnnotationConfigurer<S,
E> - Overrides:
configure
in classAnnotationConfigurerAdapter<ModelData<S,
E>, StateMachineModelConfigurer<S, E>, StateMachineModelBuilder<S, E>> - Parameters:
builder
- the builder- Throws:
Exception
- if error occurred
-
factory
Description copied from interface:ModelConfigurer
Specify a state machine model factory.- Specified by:
factory
in interfaceModelConfigurer<S,
E> - Parameters:
factory
- the state machine model factory- Returns:
- configurer for chaining
-