Interface MethodResolver

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractMethodResolver, ServletMethodResolver

public interface MethodResolver extends Serializable
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 Details

    • buildArguments

      Object[] buildArguments(ActionContext context, Method method)
      Constructs the arguments that will be passed to the dispatched method.
      Parameters:
      context - the current action context
      method - 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

      Method resolveMethod(ActionContext context, String methodName) throws NoSuchMethodException
      Decides the appropriate method instance for the specified method name. Implementations may introspect for any desired method signature.
      Parameters:
      context - the current action context
      methodName - the method name to use for introspection
      Returns:
      the method to invoke
      Throws:
      NoSuchMethodException - if an appropriate method cannot be found