Package com.luciad.util.service
Class TLcdServiceAnnotationProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
com.luciad.util.service.TLcdServiceAnnotationProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("com.luciad.util.service.LcdService")
public class TLcdServiceAnnotationProcessor
extends 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.
- Since:
- 2013.0
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
process
(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, init, isInitialized
-
Constructor Details
-
TLcdServiceAnnotationProcessor
public TLcdServiceAnnotationProcessor()
-
-
Method Details
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersion
in interfaceProcessor
- Overrides:
getSupportedSourceVersion
in classAbstractProcessor
-
process
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
-