Package com.sun.enterprise.tools.apt
Class ServiceAnnotationProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- com.sun.enterprise.tools.apt.ServiceAnnotationProcessor
-
- All Implemented Interfaces:
Processor
public class ServiceAnnotationProcessor extends AbstractProcessor
Deprecated.Not used.This class is processing the @Service
annotation and generates META-INF/services style text file for each interface annotated with @Contract- Author:
- Jerome Dochez
-
-
Field Summary
-
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
-
Constructor Summary
Constructors Constructor Description ServiceAnnotationProcessor()
Deprecated.Creates a new instance of ServiceAnnotationProcessor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
init(ProcessingEnvironment processingEnv)
Deprecated.protected void
loadExistingMetaInfFiles()
Deprecated.Loads all existing META-INF/services file from our destination directory This is usuful because during incremental builds, not all source files are recompiled, henve we cannot rewrite the META-INF/services file from scratch each time, but append/remove entries from it as necessary.boolean
process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
Deprecated.Annotation processor entry point, we are using a visitor pattern the visit only the class declaration.-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
-
-
-
-
Method Detail
-
init
public void init(ProcessingEnvironment processingEnv)
Deprecated.- Specified by:
init
in interfaceProcessor
- Overrides:
init
in classAbstractProcessor
-
loadExistingMetaInfFiles
protected void loadExistingMetaInfFiles()
Deprecated.Loads all existing META-INF/services file from our destination directory This is usuful because during incremental builds, not all source files are recompiled, henve we cannot rewrite the META-INF/services file from scratch each time, but append/remove entries from it as necessary.
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
Deprecated.Annotation processor entry point, we are using a visitor pattern the visit only the class declaration.- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
-
-