Class ConfigurationData<S,E>
java.lang.Object
org.springframework.statemachine.config.model.ConfigurationData<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
Configuration object used to keep things together in
StateMachineConfigurationBuilder
.- Author:
- Janne Valkealahti
-
Constructor Summary
ConstructorDescriptionInstantiates a new state machine configuration config data.ConfigurationData
(org.springframework.beans.factory.BeanFactory beanFactory, boolean autoStart, StateMachineEnsemble<S, E> ensemble, List<StateMachineListener<S, E>> listeners, boolean securityEnabled, org.springframework.security.access.AccessDecisionManager transitionSecurityAccessDecisionManager, org.springframework.security.access.AccessDecisionManager eventSecurityAccessDecisionManager, SecurityRule eventSecurityRule, SecurityRule transitionSecurityRule, boolean verifierEnabled, StateMachineModelVerifier<S, E> verifier, String machineId, StateMachineMonitor<S, E> stateMachineMonitor, List<StateMachineInterceptor<S, E>> interceptors) Instantiates a new state machine configuration config data.ConfigurationData
(org.springframework.beans.factory.BeanFactory beanFactory, boolean autoStart, StateMachineEnsemble<S, E> ensemble, List<StateMachineListener<S, E>> listeners, boolean securityEnabled, org.springframework.security.access.AccessDecisionManager transitionSecurityAccessDecisionManager, org.springframework.security.access.AccessDecisionManager eventSecurityAccessDecisionManager, SecurityRule eventSecurityRule, SecurityRule transitionSecurityRule, boolean verifierEnabled, StateMachineModelVerifier<S, E> verifier, String machineId, StateMachineMonitor<S, E> stateMachineMonitor, List<StateMachineInterceptor<S, E>> interceptors, TransitionConflictPolicy transitionConflightPolicy, StateDoActionPolicy stateDoActionPolicy, Long stateDoActionPolicyTimeout, RegionExecutionPolicy regionExecutionPolicy) Instantiates a new state machine configuration config data. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.BeanFactory
Gets the bean factory.org.springframework.security.access.AccessDecisionManager
Gets the event security access decision manager.Gets the event security rule.Gets the region execution policy.Gets the state do action policy.Gets the state do action policy timeout.Gets the state machine ensemble.Gets the state machine interceptors.Gets the state machine listeners.Gets the state machine monitor.Gets the transition conflict policy.org.springframework.security.access.AccessDecisionManager
Gets the transition security access decision manager.Gets the transition security rule.Gets the state machine model verifier.boolean
Returns autostart flag.boolean
Checks if security is enabled.boolean
Checks if verifier is enabled.
-
Constructor Details
-
ConfigurationData
public ConfigurationData()Instantiates a new state machine configuration config data. -
ConfigurationData
public ConfigurationData(org.springframework.beans.factory.BeanFactory beanFactory, boolean autoStart, StateMachineEnsemble<S, E> ensemble, List<StateMachineListener<S, E>> listeners, boolean securityEnabled, org.springframework.security.access.AccessDecisionManager transitionSecurityAccessDecisionManager, org.springframework.security.access.AccessDecisionManager eventSecurityAccessDecisionManager, SecurityRule eventSecurityRule, SecurityRule transitionSecurityRule, boolean verifierEnabled, StateMachineModelVerifier<S, E> verifier, String machineId, StateMachineMonitor<S, E> stateMachineMonitor, List<StateMachineInterceptor<S, E>> interceptors) Instantiates a new state machine configuration config data.- Parameters:
beanFactory
- the bean factoryautoStart
- the autostart flagensemble
- the state machine ensemblelisteners
- the state machine listenerssecurityEnabled
- the security enabled flagtransitionSecurityAccessDecisionManager
- the transition security access decision managereventSecurityAccessDecisionManager
- the event security access decision managereventSecurityRule
- the event security ruletransitionSecurityRule
- the transition security ruleverifierEnabled
- the verifier enabled flagverifier
- the state machine model verifiermachineId
- the machine idstateMachineMonitor
- the state machine monitorinterceptors
- the state machine interceptors.
-
ConfigurationData
public ConfigurationData(org.springframework.beans.factory.BeanFactory beanFactory, boolean autoStart, StateMachineEnsemble<S, E> ensemble, List<StateMachineListener<S, E>> listeners, boolean securityEnabled, org.springframework.security.access.AccessDecisionManager transitionSecurityAccessDecisionManager, org.springframework.security.access.AccessDecisionManager eventSecurityAccessDecisionManager, SecurityRule eventSecurityRule, SecurityRule transitionSecurityRule, boolean verifierEnabled, StateMachineModelVerifier<S, E> verifier, String machineId, StateMachineMonitor<S, E> stateMachineMonitor, List<StateMachineInterceptor<S, E>> interceptors, TransitionConflictPolicy transitionConflightPolicy, StateDoActionPolicy stateDoActionPolicy, Long stateDoActionPolicyTimeout, RegionExecutionPolicy regionExecutionPolicy) Instantiates a new state machine configuration config data.- Parameters:
beanFactory
- the bean factoryautoStart
- the autostart flagensemble
- the state machine ensemblelisteners
- the state machine listenerssecurityEnabled
- the security enabled flagtransitionSecurityAccessDecisionManager
- the transition security access decision managereventSecurityAccessDecisionManager
- the event security access decision managereventSecurityRule
- the event security ruletransitionSecurityRule
- the transition security ruleverifierEnabled
- the verifier enabled flagverifier
- the state machine model verifiermachineId
- the machine idstateMachineMonitor
- the state machine monitorinterceptors
- the state machine interceptors.transitionConflightPolicy
- the transition conflict policystateDoActionPolicy
- the state do action policystateDoActionPolicyTimeout
- the state do action policy timeoutregionExecutionPolicy
- the region execution policy
-
-
Method Details
-
getMachineId
-
getBeanFactory
public org.springframework.beans.factory.BeanFactory getBeanFactory()Gets the bean factory.- Returns:
- the bean factory
-
getStateMachineEnsemble
Gets the state machine ensemble.- Returns:
- the state machine ensemble
-
isAutoStart
public boolean isAutoStart()Returns autostart flag.- Returns:
- true, if is autostart is enabled.
-
getStateMachineListeners
Gets the state machine listeners.- Returns:
- the state machine listeners
-
isSecurityEnabled
public boolean isSecurityEnabled()Checks if security is enabled.- Returns:
- true, if security is enabled
-
isVerifierEnabled
public boolean isVerifierEnabled()Checks if verifier is enabled.- Returns:
- true, if verifier is enabled
-
getVerifier
Gets the state machine model verifier.- Returns:
- the state machine model verifier
-
getStateMachineMonitor
Gets the state machine monitor.- Returns:
- the state machine monitor
-
getTransitionSecurityAccessDecisionManager
public org.springframework.security.access.AccessDecisionManager getTransitionSecurityAccessDecisionManager()Gets the transition security access decision manager.- Returns:
- the security access decision manager
-
getEventSecurityAccessDecisionManager
public org.springframework.security.access.AccessDecisionManager getEventSecurityAccessDecisionManager()Gets the event security access decision manager.- Returns:
- the event security access decision manager
-
getEventSecurityRule
Gets the event security rule.- Returns:
- the event security rule
-
getTransitionSecurityRule
Gets the transition security rule.- Returns:
- the transition security rule
-
getStateMachineInterceptors
Gets the state machine interceptors.- Returns:
- the state machine interceptors
-
getTransitionConflictPolicy
Gets the transition conflict policy.- Returns:
- the transition conflict policy
-
getStateDoActionPolicy
Gets the state do action policy.- Returns:
- the state do action policy
-
getStateDoActionPolicyTimeout
Gets the state do action policy timeout.- Returns:
- the state do action policy timeout
-
getRegionExecutionPolicy
Gets the region execution policy.- Returns:
- the region execution policy
-