@SupportedAnnotationTypes(value="com.luciad.util.service.LcdService")
public class TLcdServiceAnnotationProcessor
extends javax.annotation.processing.AbstractProcessor
Annotation processor that is able to process LcdService
annotations
at compile time. It retrieves the service, and writes it away in the
META-INF/services
directory. Services and their priority can be queried at
runtime using TLcdServiceLoader
.
Note: In order to use this processor in an IDE, annotation processing should be enabled.
Constructor and Description |
---|
TLcdServiceAnnotationProcessor() |
Modifier and Type | Method and Description |
---|---|
javax.lang.model.SourceVersion |
getSupportedSourceVersion() |
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv) |
public javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface javax.annotation.processing.Processor
getSupportedSourceVersion
in class javax.annotation.processing.AbstractProcessor
public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)
process
in interface javax.annotation.processing.Processor
process
in class javax.annotation.processing.AbstractProcessor