org.codehaus.waffle.action
Class AbstractOgnlMethodDefinitionFinder

java.lang.Object
  extended by org.codehaus.waffle.action.AbstractMethodDefinitionFinder
      extended by org.codehaus.waffle.action.AbstractOgnlMethodDefinitionFinder
All Implemented Interfaces:
MethodDefinitionFinder
Direct Known Subclasses:
AnnotatedMethodDefinitionFinder, ParanamerMethodDefinitionFinder

public abstract class AbstractOgnlMethodDefinitionFinder
extends AbstractMethodDefinitionFinder

Abstract method definition finder that uses Ognl to find methods

Author:
Mauro Talevi

Field Summary
 
Fields inherited from class org.codehaus.waffle.action.AbstractMethodDefinitionFinder
messageResources
 
Constructor Summary
AbstractOgnlMethodDefinitionFinder(javax.servlet.ServletContext servletContext, ArgumentResolver argumentResolver, MethodNameResolver methodNameResolver, StringTransmuter stringTransmuter, ActionMonitor actionMonitor, MessageResources messageResources)
           
 
Method Summary
protected  java.util.List<java.lang.reflect.Method> findMethods(java.lang.Class<?> type, java.lang.String methodName)
          Inspects the class (aka Type) and finds all methods with that name.
 
Methods inherited from class org.codehaus.waffle.action.AbstractMethodDefinitionFinder
find, formatArgument, getArguments, hasEquivalentParameterTypes, resolveArguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOgnlMethodDefinitionFinder

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

findMethods

protected java.util.List<java.lang.reflect.Method> findMethods(java.lang.Class<?> type,
                                                               java.lang.String methodName)
Inspects the class (aka Type) and finds all methods with that name.

Specified by:
findMethods in class AbstractMethodDefinitionFinder
Parameters:
type - the Class in which to look for the method
methodName - the method name
Returns:
A List of methods
Throws:
NoMatchingActionMethodException - if no methods match


Copyright © 2008. All Rights Reserved.