Class StateMachineHandlerCallHelper<S,E>

java.lang.Object
org.springframework.statemachine.processor.StateMachineHandlerCallHelper<S,E>
Type Parameters:
S - the type of state
E - the type of event
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean

public class StateMachineHandlerCallHelper<S,E> extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanFactoryAware
Helper class which is used from a StateMachineObjectSupport to ease handling of StateMachineHandlers and provides needed caching so that a runtime calls are fast. Also provides dedicated methods for each annotated methods so that parameters are handled accordingly.
Author:
Janne Valkealahti
  • Constructor Details

    • StateMachineHandlerCallHelper

      public StateMachineHandlerCallHelper()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • callOnStateChanged

      public void callOnStateChanged(String stateMachineId, StateContext<S,E> stateContext)
    • callOnStateEntry

      public void callOnStateEntry(String stateMachineId, StateContext<S,E> stateContext)
    • callOnStateExit

      public void callOnStateExit(String stateMachineId, StateContext<S,E> stateContext)
    • callOnEventNotAccepted

      public void callOnEventNotAccepted(String stateMachineId, StateContext<S,E> stateContext)
    • callOnTransitionStart

      public void callOnTransitionStart(String stateMachineId, StateContext<S,E> stateContext)
    • callOnTransition

      public void callOnTransition(String stateMachineId, StateContext<S,E> stateContext)
    • callOnTransitionEnd

      public void callOnTransitionEnd(String stateMachineId, StateContext<S,E> stateContext)
    • callOnStateMachineStart

      public void callOnStateMachineStart(String stateMachineId, StateContext<S,E> stateContext)
    • callOnStateMachineStop

      public void callOnStateMachineStop(String stateMachineId, StateContext<S,E> stateContext)
    • callOnStateMachineError

      public void callOnStateMachineError(String stateMachineId, StateContext<S,E> stateContext)
    • callOnExtendedStateChanged

      public void callOnExtendedStateChanged(String stateMachineId, Object key, Object value, StateContext<S,E> stateContext)