Package io.micronaut.inject.visitor
Interface PackageElementVisitor<A>
- Type Parameters:
A- The annotation required on the package orObjectfor any package.
- All Superinterfaces:
Ordered,Toggleable
- All Known Implementing Classes:
IntrospectedPackageElementVisitor,PackageConfigurationImportVisitor
The visitor of the package elements.
- Since:
- 4.10
- Author:
- Denis Stepanov
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the annotation name associated with the package.default TypeElementVisitor.VisitorKinddefault voidvisitPackage(@NonNull PackageElement element, @NonNull VisitorContext context) Executed when a package is encountered that matches the <E> generic.Methods inherited from interface io.micronaut.core.util.Toggleable
isEnabled
-
Method Details
-
visitPackage
default void visitPackage(@NonNull @NonNull PackageElement element, @NonNull @NonNull VisitorContext context) throws ProcessingException Executed when a package is encountered that matches the <E> generic.- Parameters:
element- The package elementcontext- The visitor context- Throws:
ProcessingException
-
getSupportedAnnotationNames
- Returns:
- The supported default annotation names.
-
getVisitorKind
- Returns:
- The visitor kind.
-
getPackageAnnotationName
Retrieves the annotation name associated with the package.- Returns:
- The fully qualified name of the annotation class as a string.
-