Class ConfigurationData<S,E>

java.lang.Object
org.springframework.statemachine.config.model.ConfigurationData<S,E>
Type Parameters:
S - the type of state
E - the type of event

public class ConfigurationData<S,E> extends Object
Configuration object used to keep things together in StateMachineConfigurationBuilder.
Author:
Janne Valkealahti
  • 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 factory
      autoStart - the autostart flag
      ensemble - the state machine ensemble
      listeners - the state machine listeners
      securityEnabled - the security enabled flag
      transitionSecurityAccessDecisionManager - the transition security access decision manager
      eventSecurityAccessDecisionManager - the event security access decision manager
      eventSecurityRule - the event security rule
      transitionSecurityRule - the transition security rule
      verifierEnabled - the verifier enabled flag
      verifier - the state machine model verifier
      machineId - the machine id
      stateMachineMonitor - the state machine monitor
      interceptors - 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 factory
      autoStart - the autostart flag
      ensemble - the state machine ensemble
      listeners - the state machine listeners
      securityEnabled - the security enabled flag
      transitionSecurityAccessDecisionManager - the transition security access decision manager
      eventSecurityAccessDecisionManager - the event security access decision manager
      eventSecurityRule - the event security rule
      transitionSecurityRule - the transition security rule
      verifierEnabled - the verifier enabled flag
      verifier - the state machine model verifier
      machineId - the machine id
      stateMachineMonitor - the state machine monitor
      interceptors - the state machine interceptors.
      transitionConflightPolicy - the transition conflict policy
      stateDoActionPolicy - the state do action policy
      stateDoActionPolicyTimeout - the state do action policy timeout
      regionExecutionPolicy - the region execution policy
  • Method Details

    • getMachineId

      public String getMachineId()
    • getBeanFactory

      public org.springframework.beans.factory.BeanFactory getBeanFactory()
      Gets the bean factory.
      Returns:
      the bean factory
    • getStateMachineEnsemble

      public StateMachineEnsemble<S,E> 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

      public List<StateMachineListener<S,E>> 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

      public StateMachineModelVerifier<S,E> getVerifier()
      Gets the state machine model verifier.
      Returns:
      the state machine model verifier
    • getStateMachineMonitor

      public StateMachineMonitor<S,E> 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

      public SecurityRule getEventSecurityRule()
      Gets the event security rule.
      Returns:
      the event security rule
    • getTransitionSecurityRule

      public SecurityRule getTransitionSecurityRule()
      Gets the transition security rule.
      Returns:
      the transition security rule
    • getStateMachineInterceptors

      public List<StateMachineInterceptor<S,E>> getStateMachineInterceptors()
      Gets the state machine interceptors.
      Returns:
      the state machine interceptors
    • getTransitionConflictPolicy

      public TransitionConflictPolicy getTransitionConflictPolicy()
      Gets the transition conflict policy.
      Returns:
      the transition conflict policy
    • getStateDoActionPolicy

      public StateDoActionPolicy getStateDoActionPolicy()
      Gets the state do action policy.
      Returns:
      the state do action policy
    • getStateDoActionPolicyTimeout

      public Long getStateDoActionPolicyTimeout()
      Gets the state do action policy timeout.
      Returns:
      the state do action policy timeout
    • getRegionExecutionPolicy

      public RegionExecutionPolicy getRegionExecutionPolicy()
      Gets the region execution policy.
      Returns:
      the region execution policy