Package io.micronaut.context.visitor
Class ConfigurationReaderVisitor
java.lang.Object
io.micronaut.context.visitor.ConfigurationReaderVisitor
- All Implemented Interfaces:
Ordered
,Toggleable
,TypeElementVisitor<ConfigurationReader,
Object>
@Internal
public class ConfigurationReaderVisitor
extends Object
implements TypeElementVisitor<ConfigurationReader,Object>
The visitor adds Validated annotation if one of the parameters is a constraint or @Valid.
- Since:
- 3.7.0
- Author:
- Denis Stepanov
-
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
finish
(VisitorContext visitorContext) Called once when visitor processing finishes.static boolean
isPropertyParameter
(ParameterElement parameter, VisitorContext visitorContext) void
visitClass
(ClassElement classElement, VisitorContext context) Executed when a class is encountered that matches the <C> generic.void
visitMethod
(MethodElement method, 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
getClassType, getElementType, getSupportedAnnotationNames, getSupportedOptions, start, visitConstructor, visitEnumConstant, visitField
-
Constructor Details
-
ConfigurationReaderVisitor
public ConfigurationReaderVisitor()
-
-
Method Details
-
getVisitorKind
- Specified by:
getVisitorKind
in interfaceTypeElementVisitor<ConfigurationReader,
Object> - Returns:
- The visitor kind.
-
finish
Description copied from interface:TypeElementVisitor
Called once when visitor processing finishes.- Specified by:
finish
in interfaceTypeElementVisitor<ConfigurationReader,
Object> - Parameters:
visitorContext
- The visitor context
-
visitClass
Description copied from interface:TypeElementVisitor
Executed when a class is encountered that matches the <C> generic.- Specified by:
visitClass
in interfaceTypeElementVisitor<ConfigurationReader,
Object> - Parameters:
classElement
- The elementcontext
- The visitor context
-
visitMethod
Description copied from interface:TypeElementVisitor
Executed when a method is encountered that matches the <E> generic.- Specified by:
visitMethod
in interfaceTypeElementVisitor<ConfigurationReader,
Object> - Parameters:
method
- The elementcontext
- The visitor context
-
isPropertyParameter
public static boolean isPropertyParameter(ParameterElement parameter, VisitorContext visitorContext)
-