Package io.micronaut.context.visitor
Class ConfigurationMetadataWriterVisitor
java.lang.Object
io.micronaut.context.visitor.ConfigurationMetadataWriterVisitor
- All Implemented Interfaces:
Ordered,Toggleable,TypeElementVisitor<ConfigurationReader,Object>
- Direct Known Subclasses:
ConfigurationReaderVisitor
@Internal
public class ConfigurationMetadataWriterVisitor
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish(VisitorContext visitorContext) Called once when visitor processing finishes.static booleanisPropertyParameter(ParameterElement parameter, VisitorContext visitorContext) query()The query which allows to reduce the scope which the visitor is visiting.voidvisitClass(ClassElement classElement, VisitorContext context) Executed when a class is encountered that matches the <C> generic.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.util.Toggleable
isEnabledMethods inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
getClassType, getElementType, getSupportedOptions, start, visitConstructor, visitEnumConstant, visitField, visitMethod
-
Constructor Details
-
ConfigurationMetadataWriterVisitor
public ConfigurationMetadataWriterVisitor()
-
-
Method Details
-
getVisitorKind
- Specified by:
getVisitorKindin interfaceTypeElementVisitor<ConfigurationReader,Object> - Returns:
- The visitor kind.
-
getSupportedAnnotationNames
- Specified by:
getSupportedAnnotationNamesin interfaceTypeElementVisitor<ConfigurationReader,Object> - Returns:
- The supported default annotation names.
-
finish
Description copied from interface:TypeElementVisitorCalled once when visitor processing finishes.- Specified by:
finishin interfaceTypeElementVisitor<ConfigurationReader,Object> - Parameters:
visitorContext- The visitor context
-
query
Description copied from interface:TypeElementVisitorThe query which allows to reduce the scope which the visitor is visiting.- Specified by:
queryin interfaceTypeElementVisitor<ConfigurationReader,Object> - Returns:
- The query if the visitor.
-
visitClass
Description copied from interface:TypeElementVisitorExecuted when a class is encountered that matches the <C> generic.- Specified by:
visitClassin interfaceTypeElementVisitor<ConfigurationReader,Object> - Parameters:
classElement- The elementcontext- The visitor context
-
isPropertyParameter
public static boolean isPropertyParameter(ParameterElement parameter, VisitorContext visitorContext)
-