Class BeanImportVisitor
java.lang.Object
io.micronaut.context.visitor.BeanImportVisitor
- All Implemented Interfaces:
Ordered, Toggleable, TypeElementVisitor<Import,Object>
-
Nested Class Summary
Nested classes/interfaces inherited from interface TypeElementVisitor
TypeElementVisitor.VisitorKind -
Field Summary
Fields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ClassElement> collectInjectableElements(AnnotationMetadata element, VisitorContext context) intgetOrder()query()The query which allows to reduce the scope which the visitor is visiting.voidvisitClass(ClassElement element, VisitorContext context) Executed when a class is encountered that matches the <C> generic.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Toggleable
isEnabledMethods inherited from interface TypeElementVisitor
finish, getClassType, getElementType, getSupportedOptions, start, visitConstructor, visitEnumConstant, visitField, visitMethod
-
Constructor Details
-
BeanImportVisitor
public BeanImportVisitor()
-
-
Method Details
-
query
Description copied from interface:TypeElementVisitorThe query which allows to reduce the scope which the visitor is visiting.- Specified by:
queryin interfaceTypeElementVisitor<Import,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<Import,Object> - Parameters:
element- The elementcontext- The visitor context
-
collectInjectableElements
public static List<ClassElement> collectInjectableElements(AnnotationMetadata element, VisitorContext context) -
getSupportedAnnotationNames
- Specified by:
getSupportedAnnotationNamesin interfaceTypeElementVisitor<Import,Object> - Returns:
- The supported default annotation names.
-
getVisitorKind
- Specified by:
getVisitorKindin interfaceTypeElementVisitor<Import,Object> - Returns:
- The visitor kind.
-
getOrder
-