Class MethodInvokingStateMachineRuntimeProcessor<T,S,E>

java.lang.Object
org.springframework.statemachine.processor.MethodInvokingStateMachineRuntimeProcessor<T,S,E>
Type Parameters:
T - the return type
S - the type of state
E - the type of event
All Implemented Interfaces:
StateMachineRuntimeProcessor<T,S,E>

public class MethodInvokingStateMachineRuntimeProcessor<T,S,E> extends Object implements StateMachineRuntimeProcessor<T,S,E>
A simple StateMachineRuntimeProcessor implementation using methods from a state machine protected bean.
  • Constructor Details

    • MethodInvokingStateMachineRuntimeProcessor

      public MethodInvokingStateMachineRuntimeProcessor(Object targetObject, Method method)
      Instantiates a new method invoking state machine runtime processor.
      Parameters:
      targetObject - the target object
      method - the method
    • MethodInvokingStateMachineRuntimeProcessor

      public MethodInvokingStateMachineRuntimeProcessor(Object targetObject, String methodName)
      Instantiates a new method invoking state machine runtime processor.
      Parameters:
      targetObject - the target object
      methodName - the method name
    • MethodInvokingStateMachineRuntimeProcessor

      public MethodInvokingStateMachineRuntimeProcessor(Object targetObject, Class<? extends Annotation> annotationType)
      Instantiates a new method invoking state machine runtime processor.
      Parameters:
      targetObject - the target object
      annotationType - the annotation type
  • Method Details