S
- the type of stateE
- the type of eventpublic abstract class AbstractStateMachineConfigurerAdapter<S,E> extends java.lang.Object implements StateMachineConfigurer<S,E>
StateMachineConfigurer
.Constructor and Description |
---|
AbstractStateMachineConfigurerAdapter() |
public AbstractStateMachineConfigurerAdapter()
public final void init(StateMachineConfigBuilder<S,E> config) throws java.lang.Exception
AnnotationConfigurer
AnnotationBuilder
. Here only shared state should be
created and modified, but not properties on the AnnotationBuilder
used for building the object. This ensures that the
AnnotationConfigurer.configure(AnnotationBuilder)
method uses the correct shared
objects when building.init
in interface AnnotationConfigurer<StateMachineConfig<S,E>,StateMachineConfigBuilder<S,E>>
config
- the builderjava.lang.Exception
- if error occurredpublic void configure(StateMachineConfigBuilder<S,E> config) throws java.lang.Exception
AnnotationConfigurer
AnnotationBuilder
by setting the necessary properties
on the AnnotationBuilder
.configure
in interface AnnotationConfigurer<StateMachineConfig<S,E>,StateMachineConfigBuilder<S,E>>
config
- the builderjava.lang.Exception
- if error occurredpublic void configure(StateMachineModelConfigurer<S,E> model) throws java.lang.Exception
StateMachineConfigurer
StateMachineModelConfigurer
.configure
in interface StateMachineConfigurer<S,E>
model
- the StateMachineModelConfigurer
java.lang.Exception
- if configuration error happenspublic void configure(StateMachineConfigurationConfigurer<S,E> config) throws java.lang.Exception
StateMachineConfigurer
StateMachineConfigurationConfigurer
.configure
in interface StateMachineConfigurer<S,E>
config
- the StateMachineConfigurationConfigurer
java.lang.Exception
- if configuration error happenspublic void configure(StateMachineStateConfigurer<S,E> states) throws java.lang.Exception
StateMachineConfigurer
StateMachineStateConfigurer
.configure
in interface StateMachineConfigurer<S,E>
states
- the StateMachineStateConfigurer
java.lang.Exception
- if configuration error happenspublic void configure(StateMachineTransitionConfigurer<S,E> transitions) throws java.lang.Exception
StateMachineConfigurer
StateMachineTransitionConfigurer
.configure
in interface StateMachineConfigurer<S,E>
transitions
- the StateMachineTransitionConfigurer
java.lang.Exception
- if configuration error happenspublic boolean isAssignable(AnnotationBuilder<StateMachineConfig<S,E>> builder)
isAssignable
in interface AnnotationConfigurer<StateMachineConfig<S,E>,StateMachineConfigBuilder<S,E>>
protected final StateMachineModelBuilder<S,E> getStateMachineModelBuilder() throws java.lang.Exception
java.lang.Exception
protected final StateMachineTransitionBuilder<S,E> getStateMachineTransitionBuilder() throws java.lang.Exception
java.lang.Exception
protected final StateMachineStateBuilder<S,E> getStateMachineStateBuilder() throws java.lang.Exception
java.lang.Exception
protected final StateMachineConfigurationBuilder<S,E> getStateMachineConfigurationBuilder() throws java.lang.Exception
java.lang.Exception