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 TypeMethodDescriptionvoid
init
(ProcessingEnvironment processingEnv) Initializes the processor with the processing environment.boolean
process
(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:
init
in interfaceProcessor
- Overrides:
init
in 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:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
- Parameters:
annotations
- the set of annotationsroundEnv
- the round environment- Returns:
- false to indicate no further processing is needed
-