java.lang.Object
org.mentawai.core.InvocationChain
- public class InvocationChain
- extends java.lang.Object
When an action is executed, a chain of filters is created.
The last step of any InvocationChain is the action.
An action may have one or more filters and global filters.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filters
private java.util.LinkedList filters
action
private Action action
innerAction
private java.lang.String innerAction
InvocationChain
public InvocationChain(Action action)
- Creates an InvocationChain for this action.
getAction
public Action getAction()
- Gets the action of this InvocationChain
addFilter
void addFilter(Filter filter)
addFilters
void addFilters(java.util.List list)
invoke
public java.lang.String invoke()
throws java.lang.Exception
- Invoke and execute the next step in this InvocationChain.
This can be the next filter or the action.
getMethod
private java.lang.reflect.Method getMethod(java.lang.String innerAction)
setInnerAction
public void setInnerAction(java.lang.String innerAction)
- Sets an inner action to be executed.
An inner action is a method inside the action implementation that can be executed instead of the execute() method.