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
Processes 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.
Enabling annotation processing
Depending on your JDK version and IDE, you may need to enable annotation processing.javac
Pass-processor com.luciad.util.service.TLcdServiceAnnotationProcessor to the javac invocation.
Maven
Include<annotationProcessors>com.luciad.util.service.TLcdServiceAnnotationProcessor</annotationProcessors>
in your maven-compiler-plugin's configuration section.
IntelliJ and other IDE's
Check the appropriate checkbox in the Annotation processors section of the Java compiler settings. Depending on the IDE you may also need to point to this class.- Since:
- 2013.0
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocess(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:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-