Class PathVariableMethodControllerParameterAnnotationApplier
java.lang.Object
com.chillycheesy.modulo.controllers.methodcontroller.PathVariableMethodControllerParameterAnnotationApplier
- All Implemented Interfaces:
MethodControllerParameterAnnotationApplier
public class PathVariableMethodControllerParameterAnnotationApplier
extends Object
implements MethodControllerParameterAnnotationApplier
Apply the
PathVariable
decorator.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(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.
-
Constructor Details
-
PathVariableMethodControllerParameterAnnotationApplier
public PathVariableMethodControllerParameterAnnotationApplier()
-
-
Method Details
-
apply
public 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.- Specified by:
apply
in interfaceMethodControllerParameterAnnotationApplier
- 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
Check if the annotation is supported by this applier.- Specified by:
match
in interfaceMethodControllerParameterAnnotationApplier
- Parameters:
annotation
- The annotation to apply.- Returns:
- True if the annotation is supported by this applier.
-