Interface ResourceMethodParameterProvider

All Known Implementing Classes:
DefaultResourceMethodParameterProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

Contract for determining parameter values to inject when invoking Resource Methods.

Soklet's default implementation of this type, DefaultResourceMethodParameterProvider, is sufficient for most applications.

However, should a custom implementation be necessary for your application, documentation is available at https://www.soklet.com/docs/request-handling#resource-method-parameter-injection.

Author:
Mark Allen
  • Method Details

    • parameterValuesForResourceMethod

      For the given request and resourceMethod, vends the list of parameters to use when invoking the underlying Java method located at ResourceMethod.getMethod().

      The size of the returned list of parameters must exactly match the number of parameters required by the Java method signature.

      Parameters:
      request - the HTTP request
      resourceMethod - the Resource Method associated with the HTTP request
      Returns:
      the list of parameters to use when performing Java method invocation, or the empty list if no parameters are necessary