Package io.micronaut.context.visitor
Class BeanImportVisitor
- java.lang.Object
-
- io.micronaut.context.visitor.BeanImportVisitor
-
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,io.micronaut.core.util.Toggleable
,TypeElementVisitor<Import,java.lang.Object>
public class BeanImportVisitor extends java.lang.Object implements TypeElementVisitor<Import,java.lang.Object>
Implementation ofImport
.- Since:
- 3.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.micronaut.inject.visitor.TypeElementVisitor
TypeElementVisitor.VisitorKind
-
-
Constructor Summary
Constructors Constructor Description BeanImportVisitor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<ClassElement>
collectInjectableElements(ClassElement element, VisitorContext context)
int
getOrder()
java.util.Set<java.lang.String>
getSupportedAnnotationNames()
TypeElementVisitor.VisitorKind
getVisitorKind()
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.inject.visitor.TypeElementVisitor
finish, getClassType, getElementType, getSupportedOptions, start, visitConstructor, visitEnumConstant, visitField, visitMethod
-
-
-
-
Method Detail
-
visitClass
public void visitClass(ClassElement element, VisitorContext context)
Description copied from interface:TypeElementVisitor
Executed when a class is encountered that matches the <C> generic.- Specified by:
visitClass
in interfaceTypeElementVisitor<Import,java.lang.Object>
- Parameters:
element
- The elementcontext
- The visitor context
-
collectInjectableElements
@NonNull public static java.util.List<ClassElement> collectInjectableElements(ClassElement element, VisitorContext context)
-
getSupportedAnnotationNames
public java.util.Set<java.lang.String> getSupportedAnnotationNames()
- Specified by:
getSupportedAnnotationNames
in interfaceTypeElementVisitor<Import,java.lang.Object>
- Returns:
- The supported default annotation names.
-
getVisitorKind
@NonNull public TypeElementVisitor.VisitorKind getVisitorKind()
- Specified by:
getVisitorKind
in interfaceTypeElementVisitor<Import,java.lang.Object>
- Returns:
- The visitor kind.
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-
-