Package io.micronaut.validation.routes
Class RouteValidationVisitor
java.lang.Object
io.micronaut.validation.routes.RouteValidationVisitor
- All Implemented Interfaces:
Ordered
,Toggleable
,TypeElementVisitor<Object,
Object>
@SupportedOptions("micronaut.route.validation")
public class RouteValidationVisitor
extends Object
implements TypeElementVisitor<Object,Object>
Visits methods annotated with HttpMethodMapping and validates the
parameters are consistent with the URI.
- Since:
- 1.0
- Author:
- James Kleeh
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
TypeElementVisitor.VisitorKind
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
start
(VisitorContext visitorContext) Called once when visitor processing starts.void
visitMethod
(MethodElement element, VisitorContext context) Executed when a method is encountered that matches the <E> generic.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.util.Toggleable
isEnabled
Methods inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
finish, getClassType, getElementType, getSupportedOptions, visitClass, visitConstructor, visitEnumConstant, visitField
-
Constructor Details
-
RouteValidationVisitor
public RouteValidationVisitor()
-
-
Method Details
-
getVisitorKind
- Specified by:
getVisitorKind
in interfaceTypeElementVisitor<Object,
Object> - Returns:
- The visitor kind.
-
getSupportedAnnotationNames
- Specified by:
getSupportedAnnotationNames
in interfaceTypeElementVisitor<Object,
Object> - Returns:
- The supported default annotation names.
-
visitMethod
Description copied from interface:TypeElementVisitor
Executed when a method is encountered that matches the <E> generic.- Specified by:
visitMethod
in interfaceTypeElementVisitor<Object,
Object> - Parameters:
element
- The elementcontext
- The visitor context
-
start
Description copied from interface:TypeElementVisitor
Called once when visitor processing starts.- Specified by:
start
in interfaceTypeElementVisitor<Object,
Object> - Parameters:
visitorContext
- The visitor context
-