Interface MethodControllerParameterAnnotationApplier

All Known Implementing Classes:
HttpParamMethodControllerParameterAnnotationApplier, PathVariableMethodControllerParameterAnnotationApplier, RequestBodyMethodControllerParameterAnnotationApplier

public interface MethodControllerParameterAnnotationApplier
Interface for a class that can apply an annotation to a method parameter. It is used to build the argument that will be passed to the method. Check MethodController for more information.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply​(Annotation annotation, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Configuration configuration, Object instance, Method method, Parameter parameter, Object currentArgument)
    Apply the annotation to the parameter and return the argument to pass to the method.
    boolean
    match​(Annotation annotation)
    Check if the annotation is supported by this applier.
  • Method Details

    • apply

      Object apply(Annotation annotation, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Configuration configuration, Object instance, Method method, Parameter parameter, Object currentArgument)
      Apply the annotation to the parameter and return the argument to pass to the method.
      Parameters:
      annotation - The annotation to apply.
      request - The http request.
      response - The httpResponse.
      configuration - The current configuration.
      instance - The method instance.
      method - The method of the parameter.
      parameter - The method parameter.
      currentArgument - The current returned argument value.
      Returns:
      The argument to pass to the method.
    • match

      boolean match(Annotation annotation)
      Check if the annotation is supported by this applier.
      Parameters:
      annotation - The annotation to apply.
      Returns:
      true if the annotation is supported.