S - the type of stateE - the type of eventpublic class StateMachineConfigurationBuilder<S,E> extends AbstractConfiguredAnnotationBuilder<StateMachineConfigurationConfig<S,E>,StateMachineConfigurationConfigurer<S,E>,StateMachineConfigurationBuilder<S,E>> implements StateMachineConfigurationConfigurer<S,E>
| Constructor and Description |
|---|
StateMachineConfigurationBuilder()
Instantiates a new state machine configuration builder.
|
StateMachineConfigurationBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor)
Instantiates a new state machine configuration builder.
|
StateMachineConfigurationBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor,
boolean allowConfigurersOfSameType)
Instantiates a new state machine configuration builder.
|
| Modifier and Type | Method and Description |
|---|---|
protected StateMachineConfigurationConfig<S,E> |
performBuild()
Subclasses must implement this method to build the object that is being returned.
|
void |
setAutoStart(boolean autoStart)
Sets the auto start.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
Sets the bean factory.
|
void |
setStateMachineEnsemble(StateMachineEnsemble<S,E> ensemble)
Sets the state machine ensemble.
|
void |
setStateMachineListeners(java.util.List<StateMachineListener<S,E>> listeners)
Sets the state machine listeners.
|
void |
setTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
Sets the task executor.
|
void |
setTaskScheculer(org.springframework.scheduling.TaskScheduler taskScheculer)
Sets the task scheculer.
|
ConfigurationConfigurer<S,E> |
withConfiguration()
Gets a configurer for generic config.
|
DistributedStateMachineConfigurer<S,E> |
withDistributed()
Gets a configurer for distributed state machine config.
|
apply, apply, beforeConfigureMains, beforeConfigurePosts, beforeInit, doBuild, getConfigurer, getConfigurers, getOrApply, getOrBuild, getSharedObject, getSharedObjects, objectPostProcessor, postProcess, removeConfigurer, removeConfigurers, setSharedObjectbuild, getObjectpublic StateMachineConfigurationBuilder()
public StateMachineConfigurationBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor, boolean allowConfigurersOfSameType)
objectPostProcessor - the object post processorallowConfigurersOfSameType - the allow configurers of same typepublic StateMachineConfigurationBuilder(ObjectPostProcessor<java.lang.Object> objectPostProcessor)
objectPostProcessor - the object post processorpublic ConfigurationConfigurer<S,E> withConfiguration() throws java.lang.Exception
StateMachineConfigurationConfigurerwithConfiguration in interface StateMachineConfigurationConfigurer<S,E>ConfigurationConfigurer for chainingjava.lang.Exception - if configuration error happenspublic DistributedStateMachineConfigurer<S,E> withDistributed() throws java.lang.Exception
StateMachineConfigurationConfigurerwithDistributed in interface StateMachineConfigurationConfigurer<S,E>DistributedStateMachineConfigurer for chainingjava.lang.Exception - if configuration error happensprotected StateMachineConfigurationConfig<S,E> performBuild() throws java.lang.Exception
AbstractConfiguredAnnotationBuilderperformBuild in class AbstractConfiguredAnnotationBuilder<StateMachineConfigurationConfig<S,E>,StateMachineConfigurationConfigurer<S,E>,StateMachineConfigurationBuilder<S,E>>java.lang.Exception - if error occurredpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
beanFactory - the new bean factorypublic void setTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
taskExecutor - the new task executorpublic void setTaskScheculer(org.springframework.scheduling.TaskScheduler taskScheculer)
taskScheculer - the new task scheculerpublic void setStateMachineEnsemble(StateMachineEnsemble<S,E> ensemble)
ensemble - the ensemblepublic void setAutoStart(boolean autoStart)
autoStart - the new autostart flagpublic void setStateMachineListeners(java.util.List<StateMachineListener<S,E>> listeners)
listeners - the listeners