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
  • Constructor Details

    • DiIndexProcessor

      public DiIndexProcessor()
  • Method Details

    • process

      public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
      Processes classes with the Named annotation and generates an index file.
      Specified by:
      process in interface Processor
      Specified by:
      process in class AbstractProcessor
      Parameters:
      annotations - the annotation types requested to be processed
      roundEnv - environment for information about the current and prior round
      Returns:
      whether or not the set of annotations are claimed by this processor