public class AnnotationProcessor
extends javax.annotation.processing.AbstractProcessor
Mainly, it forms the SonicConnect Service from @SonicConnect annotated class and write related artifacts to defined locations.
| Constructor and Description |
|---|
AnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.String> |
getSupportedAnnotationTypes()
Returns the set of annotation processor's supported annotation types
Supported Annotation Types:
SonicConnect
|
java.util.Set<java.lang.String> |
getSupportedOptions() |
javax.lang.model.SourceVersion |
getSupportedSourceVersion()
|
void |
init(javax.annotation.processing.ProcessingEnvironment processingEnv)
Initializes the processing environment and constructs ProcessorContext, ConnectServiceGenerator,
ConnectServiceValidator objects from given
processingEnv |
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv)
Process the SonicConnect annotation and 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> getSupportedOptions()
getSupportedOptions in interface javax.annotation.processing.ProcessorgetSupportedOptions in class javax.annotation.processing.AbstractProcessorpublic java.util.Set<java.lang.String> getSupportedAnnotationTypes()
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)
ConnectServiceValidator.validateService(ConnectModel)ConnectServiceGenerator.generateService(ConnectModel)process 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