Class ProjectionMetadataProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
nl.datasteel.crudcraft.codegen.projection.ProjectionMetadataProcessor
- All Implemented Interfaces:
Processor
@AutoService(javax.annotation.processing.Processor.class)
@SupportedAnnotationTypes("*")
@SupportedSourceVersion(RELEASE_21)
public class ProjectionMetadataProcessor
extends AbstractProcessor
Annotation processor that scans DTO classes and emits
ProjectionMetadata
implementations along with a registry to expose them.-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(ProcessingEnvironment processingEnv) Initializes the processor with the processing environment.booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Processes the annotations in the round environment.Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
-
Constructor Details
-
ProjectionMetadataProcessor
public ProjectionMetadataProcessor()
-
-
Method Details
-
init
Initializes the processor with the processing environment.- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor- Parameters:
processingEnv- the processing environment
-
process
Processes the annotations in the round environment. Scans for DTO classes and generates metadata for them.- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor- Parameters:
annotations- the set of annotationsroundEnv- the round environment- Returns:
- false to indicate no further processing is needed
-