Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mentawai.core
Class InvocationChain  view InvocationChain download InvocationChain.java

java.lang.Object
  extended byorg.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.


Field Summary
private  Action action
           
private  java.util.LinkedList filters
           
private  java.lang.String innerAction
           
 
Constructor Summary
InvocationChain(Action action)
          Creates an InvocationChain for this action.
 
Method Summary
(package private)  void addFilter(Filter filter)
           
(package private)  void addFilters(java.util.List list)
           
 Action getAction()
          Gets the action of this InvocationChain
private  java.lang.reflect.Method getMethod(java.lang.String innerAction)
           
 java.lang.String invoke()
          Invoke and execute the next step in this InvocationChain.
 void setInnerAction(java.lang.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
 

Field Detail

filters

private java.util.LinkedList filters

action

private Action action

innerAction

private java.lang.String innerAction
Constructor Detail

InvocationChain

public InvocationChain(Action action)
Creates an InvocationChain for this action.

Method Detail

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.