S - the type of stateE - the type of eventpublic class StateMachineConfigurerAdapter<S,E> extends java.lang.Object implements StateMachineConfigurer<S,E>
StateMachineConfigurer.| 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)
Callback for
StateMachineStateConfigurer. |
void |
configure(StateMachineTransitionConfigurer<S,E> transitions)
Callback for
StateMachineTransitionConfigurer. |
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
StateMachineConfigurerStateMachineStateConfigurer.configure in interface StateMachineConfigurer<S,E>states - the StateMachineStateConfigurerjava.lang.Exception - if configuration error happenspublic void configure(StateMachineTransitionConfigurer<S,E> transitions) throws java.lang.Exception
StateMachineConfigurerStateMachineTransitionConfigurer.configure in interface StateMachineConfigurer<S,E>transitions - the StateMachineTransitionConfigurerjava.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 StateMachineTransitionBuilder<S,E> getStateMachineTransitionBuilder() throws java.lang.Exception
java.lang.Exceptionprotected final StateMachineStateBuilder<S,E> getStateMachineStateBuilder() throws java.lang.Exception
java.lang.Exception