public class AnnotationProcessor
extends javax.annotation.processing.AbstractProcessor
Mainly, it forms the ESB Service from @SonicPOJO annotated class and write ESB Service artifacts to defined locations.
InitParameter,
Operation,
Parameter,
ESBServiceValidator,
ESBServiceGenerator| Constructor and Description |
|---|
AnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getSupportedAnnotationTypes()
Returns the supported annotation types of annotation processor
|
javax.lang.model.SourceVersion |
getSupportedSourceVersion()
|
void |
init(javax.annotation.processing.ProcessingEnvironment processingEnv)
Initializes the processing environment and constructs ProcessorContext, ESBServiceGenerator,
ESBServiceValidator objects from given
processingEnv |
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv)
This method runs the following actions in order.
|
public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
processingEnvinit in interface javax.annotation.processing.Processorinit in class javax.annotation.processing.AbstractProcessorprocessingEnv - processing environmentpublic java.util.Set<java.lang.String> getSupportedAnnotationTypes()
Supported Annotation Types:
getSupportedAnnotationTypes in interface javax.annotation.processing.ProcessorgetSupportedAnnotationTypes in class javax.annotation.processing.AbstractProcessorpublic javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface javax.annotation.processing.ProcessorgetSupportedSourceVersion in class javax.annotation.processing.AbstractProcessorpublic boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv)
ESBServiceValidator.validateService(ServiceModel)ESBServiceGenerator.generateService(ServiceModel) and write generated artifacts to proper locationsprocess in interface javax.annotation.processing.Processorprocess in class javax.annotation.processing.AbstractProcessorannotations - supported annotationsroundEnv - information about a round of annotation processingtrue if annotation processing is finished without any problem, otherwise falseServiceModel,
OperationModel,