Class MethodInvokingStateMachineRuntimeProcessor<T,S,E>
java.lang.Object
org.springframework.statemachine.processor.MethodInvokingStateMachineRuntimeProcessor<T,S,E>
- Type Parameters:
T
- the return typeS
- the type of stateE
- 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 Summary
ConstructorDescriptionMethodInvokingStateMachineRuntimeProcessor
(Object targetObject, Class<? extends Annotation> annotationType) Instantiates a new method invoking state machine runtime processor.MethodInvokingStateMachineRuntimeProcessor
(Object targetObject, Method method) Instantiates a new method invoking state machine runtime processor.MethodInvokingStateMachineRuntimeProcessor
(Object targetObject, String methodName) Instantiates a new method invoking state machine runtime processor. -
Method Summary
Modifier and TypeMethodDescriptionprocess
(StateMachineRuntime<S, E> stateMachineRuntime) Process the container based on information available fromStateMachineRuntime
.
-
Constructor Details
-
MethodInvokingStateMachineRuntimeProcessor
Instantiates a new method invoking state machine runtime processor.- Parameters:
targetObject
- the target objectmethod
- the method
-
MethodInvokingStateMachineRuntimeProcessor
Instantiates a new method invoking state machine runtime processor.- Parameters:
targetObject
- the target objectmethodName
- 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 objectannotationType
- the annotation type
-
-
Method Details
-
process
Description copied from interface:StateMachineRuntimeProcessor
Process the container based on information available fromStateMachineRuntime
.- Specified by:
process
in interfaceStateMachineRuntimeProcessor<T,
S, E> - Parameters:
stateMachineRuntime
- the yarn container runtime- Returns:
- the result
-