Class ServiceProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- org.glassfish.hk2.metadata.generator.ServiceProcessor
-
- All Implemented Interfaces:
javax.annotation.processing.Processor
@SupportedAnnotationTypes("org.jvnet.hk2.annotations.Service") @SupportedOptions("org.glassfish.hk2.metadata.location") public class ServiceProcessor extends javax.annotation.processing.AbstractProcessorThe entry point for service @Service annotations
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classServiceProcessor.DescriptorComparitorThis is a comparator making things that don't really compare, compare.
-
Field Summary
Fields Modifier and Type Field Description private java.util.TreeSet<DescriptorImpl>allDescriptorsprivate static java.lang.StringLOCATION_DEFAULTprivate static java.lang.StringLOCATION_OPTIONprivate java.util.ArrayList<javax.lang.model.element.Element>originators
-
Constructor Summary
Constructors Constructor Description ServiceProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcreateFile()javax.lang.model.SourceVersiongetSupportedSourceVersion()Gets rid of warnings and this code should work with all source versionsbooleanprocess(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)
-
-
-
Field Detail
-
LOCATION_OPTION
private static final java.lang.String LOCATION_OPTION
- See Also:
- Constant Field Values
-
LOCATION_DEFAULT
private static final java.lang.String LOCATION_DEFAULT
- See Also:
- Constant Field Values
-
allDescriptors
private final java.util.TreeSet<DescriptorImpl> allDescriptors
-
originators
private final java.util.ArrayList<javax.lang.model.element.Element> originators
-
-
Method Detail
-
process
public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)- Specified by:
processin interfacejavax.annotation.processing.Processor- Specified by:
processin classjavax.annotation.processing.AbstractProcessor
-
getSupportedSourceVersion
public javax.lang.model.SourceVersion getSupportedSourceVersion()
Gets rid of warnings and this code should work with all source versions- Specified by:
getSupportedSourceVersionin interfacejavax.annotation.processing.Processor- Overrides:
getSupportedSourceVersionin classjavax.annotation.processing.AbstractProcessor
-
createFile
private void createFile() throws java.io.IOException- Throws:
java.io.IOException
-
-