Class ProjectionMetadataProcessor

java.lang.Object
javax.annotation.processing.AbstractProcessor
nl.datasteel.crudcraft.codegen.projection.ProjectionMetadataProcessor
All Implemented Interfaces:
Processor

Annotation processor that scans DTO classes and emits ProjectionMetadata implementations along with a registry to expose them.
  • Constructor Details

    • ProjectionMetadataProcessor

      public ProjectionMetadataProcessor()
  • Method Details

    • init

      public void init(ProcessingEnvironment processingEnv)
      Initializes the processor with the processing environment.
      Specified by:
      init in interface Processor
      Overrides:
      init in class AbstractProcessor
      Parameters:
      processingEnv - the processing environment
    • process

      public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
      Processes the annotations in the round environment. Scans for DTO classes and generates metadata for them.
      Specified by:
      process in interface Processor
      Specified by:
      process in class AbstractProcessor
      Parameters:
      annotations - the set of annotations
      roundEnv - the round environment
      Returns:
      false to indicate no further processing is needed