org.codehaus.waffle.action
Class ParanamerMethodDefinitionFinder

java.lang.Object
  extended by org.codehaus.waffle.action.AbstractMethodDefinitionFinder
      extended by org.codehaus.waffle.action.AbstractOgnlMethodDefinitionFinder
          extended by org.codehaus.waffle.action.ParanamerMethodDefinitionFinder
All Implemented Interfaces:
MethodDefinitionFinder

public class ParanamerMethodDefinitionFinder
extends AbstractOgnlMethodDefinitionFinder

Pananamer-based method definition finder, which can be used in alternative to other definition finders, eg AnnotatedMethodDefinitionFinder.



Note: Pragmatic method calls will always take precedence.

Author:
Paul Hammant
See Also:
AnnotatedMethodDefinitionFinder

Constructor Summary
ParanamerMethodDefinitionFinder(javax.servlet.ServletContext servletContext, ArgumentResolver argumentResolver, MethodNameResolver methodNameResolver, StringTransmuter stringTransmuter, ActionMonitor actionMonitor)
           
 
Method Summary
protected  java.util.List<java.lang.Object> getArguments(java.lang.reflect.Method method, javax.servlet.http.HttpServletRequest request)
          Uses Paranamer to determine the parameter names to use to resolve the argument values.
 
Methods inherited from class org.codehaus.waffle.action.AbstractOgnlMethodDefinitionFinder
findMethods
 
Methods inherited from class org.codehaus.waffle.action.AbstractMethodDefinitionFinder
find, formatArgument, resolveArguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParanamerMethodDefinitionFinder

public ParanamerMethodDefinitionFinder(javax.servlet.ServletContext servletContext,
                                       ArgumentResolver argumentResolver,
                                       MethodNameResolver methodNameResolver,
                                       StringTransmuter stringTransmuter,
                                       ActionMonitor actionMonitor)
Method Detail

getArguments

protected java.util.List<java.lang.Object> getArguments(java.lang.reflect.Method method,
                                                        javax.servlet.http.HttpServletRequest request)
Uses Paranamer to determine the parameter names to use to resolve the argument values.

Specified by:
getArguments in class AbstractMethodDefinitionFinder
Parameters:
method - the action method to be invoked
request - the HttpServetRequest
Returns:
the resolved list of arguments needed to satisfy the action method invocation


Copyright © 2008. All Rights Reserved.