Class DiIndexProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.apache.maven.di.tool.DiIndexProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("org.apache.maven.api.di.Named")
@SupportedSourceVersion(RELEASE_17)
public class DiIndexProcessor
extends AbstractProcessor
Annotation processor that generates an index file for classes annotated with
Named
.
This processor scans for classes with the @Named
annotation and creates a file
at META-INF/maven/org.apache.maven.api.di.Inject
containing the fully qualified
names of these classes.- Since:
- 4.0.0
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
process
(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Processes classes with theNamed
annotation and generates an index file.Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized
-
Constructor Details
-
DiIndexProcessor
public DiIndexProcessor()
-
-
Method Details
-
process
Processes classes with theNamed
annotation and generates an index file.- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
- Parameters:
annotations
- the annotation types requested to be processedroundEnv
- environment for information about the current and prior round- Returns:
- whether or not the set of annotations are claimed by this processor
-