|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.core.InvocationChain
public class InvocationChain
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.
| Constructor Summary | |
|---|---|
InvocationChain(String actionName,
Action action,
ActionConfig ac)
Creates an InvocationChain for this action. |
|
| Method Summary | |
|---|---|
Action |
getAction()
Gets the action of this InvocationChain |
ActionConfig |
getActionConfig()
|
String |
getActionName()
Returns the name of the action being executed in the invocation chain. |
Filter |
getFilter(Class<? extends Filter> filterClass)
|
List<Filter> |
getFilters()
Returns the filters of this invocation chain. |
String |
getInnerAction()
Returns the inner action being executed in the invocation chain. |
Object |
getPojo()
Check whether this action is a PojoAction to return its pojo. |
protected void |
initInnerAction(Action mainAction,
Action innerAction)
Initialize inner action class contexts with the main action contexts... |
String |
invoke()
Invoke and execute the next step in this InvocationChain. |
void |
setInnerAction(String innerAction)
Sets an inner action to be executed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InvocationChain(String actionName,
Action action,
ActionConfig ac)
action - The action for what this InvocationChain will be created.| Method Detail |
|---|
public ActionConfig getActionConfig()
public Filter getFilter(Class<? extends Filter> filterClass)
public Action getAction()
public Object getPojo()
public String invoke()
throws Exception
Exception
protected void initInnerAction(Action mainAction,
Action innerAction)
mainAction - The main action.innerAction - The inner action object. (inner class)public void setInnerAction(String innerAction)
innerAction - The name of the method to be executed as an inner actionpublic String getInnerAction()
public String getActionName()
public List<Filter> getFilters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||