S
- the type of stateE
- the type of eventpublic class StateMachineConfigurationBuilder<S,E> extends AbstractConfiguredAnnotationBuilder<ConfigurationData<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 ConfigurationData<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 |
setEventSecurityAccessDecisionManager(org.springframework.security.access.AccessDecisionManager eventSecurityAccessDecisionManager)
Sets the security event access decision manager.
|
void |
setEventSecurityRule(SecurityRule eventSecurityRule)
Sets the event security rule.
|
void |
setMachineId(java.lang.String machineId)
Sets the machine id.
|
void |
setSecurityEnabled(boolean securityEnabled)
Sets the security enabled.
|
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.
|
void |
setTransitionSecurityAccessDecisionManager(org.springframework.security.access.AccessDecisionManager transitionSecurityAccessDecisionManager)
Sets the security transition access decision manager.
|
void |
setTransitionSecurityRule(SecurityRule transitionSecurityRule)
Sets the transition security rule.
|
void |
setVerifier(StateMachineModelVerifier<S,E> verifier)
Sets the state machine model verifier.
|
void |
setVerifierEnabled(boolean verifierEnabled)
Sets the verifier enabled.
|
ConfigurationConfigurer<S,E> |
withConfiguration()
Gets a configurer for generic config.
|
DistributedStateMachineConfigurer<S,E> |
withDistributed()
Gets a configurer for distributed state machine config.
|
SecurityConfigurer<S,E> |
withSecurity()
Gets a configurer for securing state machine.
|
VerifierConfigurer<S,E> |
withVerifier()
Gets a configurer for state machine model verifier.
|
apply, apply, beforeConfigureMains, beforeConfigurePosts, beforeInit, doBuild, getConfigurer, getConfigurers, getOrApply, getOrBuild, getSharedObject, getSharedObjects, objectPostProcessor, postProcess, removeConfigurer, removeConfigurers, setSharedObject
build, getObject
public 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
StateMachineConfigurationConfigurer
withConfiguration
in interface StateMachineConfigurationConfigurer<S,E>
ConfigurationConfigurer
for chainingjava.lang.Exception
- if configuration error happenspublic DistributedStateMachineConfigurer<S,E> withDistributed() throws java.lang.Exception
StateMachineConfigurationConfigurer
withDistributed
in interface StateMachineConfigurationConfigurer<S,E>
DistributedStateMachineConfigurer
for chainingjava.lang.Exception
- if configuration error happenspublic SecurityConfigurer<S,E> withSecurity() throws java.lang.Exception
StateMachineConfigurationConfigurer
withSecurity
in interface StateMachineConfigurationConfigurer<S,E>
SecurityConfigurer
for chainingjava.lang.Exception
- if configuration error happenspublic VerifierConfigurer<S,E> withVerifier() throws java.lang.Exception
StateMachineConfigurationConfigurer
withVerifier
in interface StateMachineConfigurationConfigurer<S,E>
VerifierConfigurer
for chainingjava.lang.Exception
- if configuration error happensprotected ConfigurationData<S,E> performBuild() throws java.lang.Exception
AbstractConfiguredAnnotationBuilder
performBuild
in class AbstractConfiguredAnnotationBuilder<ConfigurationData<S,E>,StateMachineConfigurationConfigurer<S,E>,StateMachineConfigurationBuilder<S,E>>
java.lang.Exception
- if error occurredpublic void setMachineId(java.lang.String machineId)
machineId
- the new machine idpublic 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 listenerspublic void setSecurityEnabled(boolean securityEnabled)
securityEnabled
- the new security enabledpublic void setVerifierEnabled(boolean verifierEnabled)
verifierEnabled
- the new verifier enabledpublic void setTransitionSecurityAccessDecisionManager(org.springframework.security.access.AccessDecisionManager transitionSecurityAccessDecisionManager)
transitionSecurityAccessDecisionManager
- the new security transition access decision managerpublic void setEventSecurityAccessDecisionManager(org.springframework.security.access.AccessDecisionManager eventSecurityAccessDecisionManager)
eventSecurityAccessDecisionManager
- the new security event access decision managerpublic void setEventSecurityRule(SecurityRule eventSecurityRule)
eventSecurityRule
- the new event security rulepublic void setTransitionSecurityRule(SecurityRule transitionSecurityRule)
transitionSecurityRule
- the new event security rulepublic void setVerifier(StateMachineModelVerifier<S,E> verifier)
verifier
- the state machine model verifier