Package io.micronaut.context.visitor
Class BeanImportVisitor
java.lang.Object
io.micronaut.context.visitor.BeanImportVisitor
- All Implemented Interfaces:
Ordered
,Toggleable
,TypeElementVisitor<Import,
Object>
@Internal
public class BeanImportVisitor
extends Object
implements TypeElementVisitor<Import,Object>
Implementation of
Import
.- Since:
- 3.0.0
- Author:
- graemerocher
-
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 TypeMethodDescriptionstatic @NonNull List<ClassElement>
collectInjectableElements
(AnnotationMetadata element, VisitorContext context) int
getOrder()
query()
The query which allows to reduce the scope which the visitor is visiting.void
visitClass
(ClassElement element, 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, wait
Methods inherited from interface io.micronaut.core.util.Toggleable
isEnabled
Methods inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
finish, getClassType, getElementType, getSupportedOptions, start, visitConstructor, visitEnumConstant, visitField, visitMethod
-
Constructor Details
-
BeanImportVisitor
public BeanImportVisitor()
-
-
Method Details
-
query
Description copied from interface:TypeElementVisitor
The query which allows to reduce the scope which the visitor is visiting.- Specified by:
query
in interfaceTypeElementVisitor<Import,
Object> - Returns:
- The query if the visitor.
-
visitClass
Description copied from interface:TypeElementVisitor
Executed when a class is encountered that matches the <C> generic.- Specified by:
visitClass
in interfaceTypeElementVisitor<Import,
Object> - Parameters:
element
- The elementcontext
- The visitor context
-
collectInjectableElements
@NonNull public static @NonNull List<ClassElement> collectInjectableElements(AnnotationMetadata element, VisitorContext context) -
getSupportedAnnotationNames
- Specified by:
getSupportedAnnotationNames
in interfaceTypeElementVisitor<Import,
Object> - Returns:
- The supported default annotation names.
-
getVisitorKind
- Specified by:
getVisitorKind
in interfaceTypeElementVisitor<Import,
Object> - Returns:
- The visitor kind.
-
getOrder
public int getOrder()
-