S
- the type of stateE
- the type of eventpublic class StateMachineStateBuilder<S,E> extends AbstractConfiguredAnnotationBuilder<StatesData<S,E>,StateMachineStateConfigurer<S,E>,StateMachineStateBuilder<S,E>> implements StateMachineStateConfigurer<S,E>
Constructor and Description |
---|
StateMachineStateBuilder() |
StateMachineStateBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor) |
StateMachineStateBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor,
boolean allowConfigurersOfSameType) |
Modifier and Type | Method and Description |
---|---|
void |
addStateData(java.util.Collection<StateData<S,E>> stateDatas) |
protected StatesData<S,E> |
performBuild()
Subclasses must implement this method to build the object that is being returned.
|
StateConfigurer<S,E> |
withStates()
Gets a configurer for states.
|
apply, apply, beforeConfigureMains, beforeConfigurePosts, beforeInit, doBuild, getConfigurer, getConfigurers, getOrApply, getOrBuild, getSharedObject, getSharedObjects, objectPostProcessor, postProcess, removeConfigurer, removeConfigurers, setSharedObject
build, getObject
public StateMachineStateBuilder()
public StateMachineStateBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor, boolean allowConfigurersOfSameType)
public StateMachineStateBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor)
protected StatesData<S,E> performBuild() throws java.lang.Exception
AbstractConfiguredAnnotationBuilder
performBuild
in class AbstractConfiguredAnnotationBuilder<StatesData<S,E>,StateMachineStateConfigurer<S,E>,StateMachineStateBuilder<S,E>>
java.lang.Exception
- if error occurredpublic StateConfigurer<S,E> withStates() throws java.lang.Exception
StateMachineStateConfigurer
withStates
in interface StateMachineStateConfigurer<S,E>
StateConfigurer
for chainingjava.lang.Exception
- if configuration error happens