public class StateMachineConfigurerAdapter<S,E> extends java.lang.Object implements StateMachineConfigurer<S,E>
| Constructor and Description |
|---|
StateMachineConfigurerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(StateMachineConfigBuilder<S,E> config)
Configure the
AnnotationBuilder by setting the necessary properties
on the AnnotationBuilder. |
void |
configure(StateMachineStateConfigurer<S,E> states) |
void |
configure(StateMachineTransitionConfigurer<S,E> transitions) |
protected StateMachineStateBuilder<S,E> |
getStateMachineStateBuilder() |
protected StateMachineTransitionBuilder<S,E> |
getStateMachineTransitionBuilder() |
void |
init(StateMachineConfigBuilder<S,E> config)
Initialise the
AnnotationBuilder. |
boolean |
isAssignable(AnnotationBuilder<StateMachineConfig<S,E>> builder) |
public final void init(StateMachineConfigBuilder<S,E> config) throws java.lang.Exception
AnnotationConfigurerAnnotationBuilder. 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
AnnotationConfigurerAnnotationBuilder 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(StateMachineStateConfigurer<S,E> states) throws java.lang.Exception
configure in interface StateMachineConfigurer<S,E>java.lang.Exceptionpublic void configure(StateMachineTransitionConfigurer<S,E> transitions) throws java.lang.Exception
configure in interface StateMachineConfigurer<S,E>java.lang.Exceptionpublic boolean isAssignable(AnnotationBuilder<StateMachineConfig<S,E>> builder)
isAssignable in interface AnnotationConfigurer<StateMachineConfig<S,E>,StateMachineConfigBuilder<S,E>>protected final StateMachineTransitionBuilder<S,E> getStateMachineTransitionBuilder() throws java.lang.Exception
java.lang.Exceptionprotected final StateMachineStateBuilder<S,E> getStateMachineStateBuilder() throws java.lang.Exception
java.lang.Exception