org.codehaus.waffle.action
Class AnnotatedMethodDefinitionFinder
java.lang.Object
org.codehaus.waffle.action.AbstractMethodDefinitionFinder
org.codehaus.waffle.action.AbstractOgnlMethodDefinitionFinder
org.codehaus.waffle.action.AnnotatedMethodDefinitionFinder
- All Implemented Interfaces:
- MethodDefinitionFinder
public class AnnotatedMethodDefinitionFinder
- extends AbstractOgnlMethodDefinitionFinder
Annotation-based method definition finder. This is the default default definition finder used by Waffle.
Note: Pragmatic method calls always take precedence over other types.
- Author:
- Michael Ward
Method Summary |
protected java.util.List<java.lang.Object> |
getArguments(java.lang.reflect.Method method,
javax.servlet.http.HttpServletRequest request)
Inspects the method's ActionMethod annotation to determine the parameter names to use to resolve the
argument values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotatedMethodDefinitionFinder
public AnnotatedMethodDefinitionFinder(javax.servlet.ServletContext servletContext,
ArgumentResolver argumentResolver,
MethodNameResolver methodNameResolver,
StringTransmuter stringTransmuter,
ActionMonitor actionMonitor,
MessageResources messageResources)
getArguments
protected java.util.List<java.lang.Object> getArguments(java.lang.reflect.Method method,
javax.servlet.http.HttpServletRequest request)
- Inspects the method's
ActionMethod
annotation 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 invokedrequest
- the HttpServetRequest
- Returns:
- the resolved list of arguments needed to satisfy the action method invocation
Copyright © 2008. All Rights Reserved.