public class MethodInvocationAction extends Object implements Action<Object>
StatefulController| Constructor and Description |
|---|
MethodInvocationAction(String method,
Class<?>[] parameters,
FSM<Object> fsm,
Object controller) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
buildInvokeParameters(Object stateful,
String event,
List<Object> parmList) |
void |
execute(Object stateful,
String event,
Object... parms)
Called to execute an action based off a State Transition.
|
protected Object |
invoke(Object context,
List<Object> invokeParmList) |
protected Object |
invoke(Object stateful,
String event,
List<Object> invokeParmList) |
String |
toString() |
public void execute(Object stateful, String event, Object... parms) throws RetryException
Actionexecute in interface Action<Object>stateful - The Stateful Entityevent - The ocurring Eventparms - A set of optional arguments passed into the onEvent method of the FSMRetryException - thrown when the event must be retried due to Stale state or some other error conditionprotected Object invoke(Object stateful, String event, List<Object> invokeParmList) throws RetryException, SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException
protected Object invoke(Object context, List<Object> invokeParmList) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
Copyright © 2016. All rights reserved.