org.codehaus.waffle.action
Class MethodDefinition

java.lang.Object
  extended by org.codehaus.waffle.action.MethodDefinition

public class MethodDefinition
extends Object

Holder for the method and values to be executed.

Author:
Michael Ward

Constructor Summary
MethodDefinition(Method method)
           
 
Method Summary
 void addMethodArgument(Object argument)
          Allows resolved argument to be added.
 Method getMethod()
          The method that is to be invoked on the controller
 List<Object> getMethodArguments()
          The argument values that will be used to satisfy the invocation of the action method
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodDefinition

public MethodDefinition(Method method)
Method Detail

getMethod

public Method getMethod()
The method that is to be invoked on the controller


getMethodArguments

public List<Object> getMethodArguments()
The argument values that will be used to satisfy the invocation of the action method


addMethodArgument

public void addMethodArgument(Object argument)
Allows resolved argument to be added. Arguments should be added in order.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008. All Rights Reserved.