Package org.apache.struts.dispatcher
Interface MethodResolver
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractMethodResolver
,ServletMethodResolver
This interface defines a pluggable strategy for resolving a method and
extracting its methods from an
ActionContext
. A Dispatcher
may use the resolver to separate out its method resolution based on
technology (such as servlets, portlets, etc.).- Since:
- Struts 1.4
- Version:
- $Rev$
-
Method Summary
Modifier and TypeMethodDescriptionObject[]
buildArguments
(ActionContext context, Method method) Constructs the arguments that will be passed to the dispatched method.resolveMethod
(ActionContext context, String methodName) Decides the appropriate method instance for the specified method name.
-
Method Details
-
buildArguments
Constructs the arguments that will be passed to the dispatched method.- Parameters:
context
- the current action contextmethod
- the target method of this dispatch- Returns:
- the arguments array for the method, or
null
if the method does not match any supported signatures - See Also:
-
resolveMethod
Decides the appropriate method instance for the specified method name. Implementations may introspect for any desired method signature.- Parameters:
context
- the current action contextmethodName
- the method name to use for introspection- Returns:
- the method to invoke
- Throws:
NoSuchMethodException
- if an appropriate method cannot be found
-