S
- the type of stateE
- the type of eventpublic class StateMachineModelBuilder<S,E> extends AbstractConfiguredAnnotationBuilder<ModelData<S,E>,StateMachineModelConfigurer<S,E>,StateMachineModelBuilder<S,E>> implements StateMachineModelConfigurer<S,E>
Constructor and Description |
---|
StateMachineModelBuilder()
Instantiates a new state machine model builder.
|
StateMachineModelBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor)
Instantiates a new state machine model builder.
|
StateMachineModelBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor,
boolean allowConfigurersOfSameType)
Instantiates a new state machine model builder.
|
Modifier and Type | Method and Description |
---|---|
protected ModelData<S,E> |
performBuild()
Subclasses must implement this method to build the object that is being returned.
|
void |
setStateMachineModelFactory(StateMachineModelFactory<S,E> factory) |
ModelConfigurer<S,E> |
withModel()
Gets a configurer for model.
|
apply, apply, beforeConfigureMains, beforeConfigurePosts, beforeInit, doBuild, getConfigurer, getConfigurers, getOrApply, getOrBuild, getSharedObject, getSharedObjects, objectPostProcessor, postProcess, removeConfigurer, removeConfigurers, setSharedObject
build, getObject
public StateMachineModelBuilder()
public StateMachineModelBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor, boolean allowConfigurersOfSameType)
objectPostProcessor
- the object post processorallowConfigurersOfSameType
- the allow configurers of same typepublic StateMachineModelBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor)
objectPostProcessor
- the object post processorprotected ModelData<S,E> performBuild() throws java.lang.Exception
AbstractConfiguredAnnotationBuilder
performBuild
in class AbstractConfiguredAnnotationBuilder<ModelData<S,E>,StateMachineModelConfigurer<S,E>,StateMachineModelBuilder<S,E>>
java.lang.Exception
- if error occurredpublic ModelConfigurer<S,E> withModel() throws java.lang.Exception
StateMachineModelConfigurer
withModel
in interface StateMachineModelConfigurer<S,E>
ModelConfigurer
for chainingjava.lang.Exception
- if configuration error happenspublic void setStateMachineModelFactory(StateMachineModelFactory<S,E> factory)