@SupportedAnnotationTypes(value="org.jvnet.hk2.annotations.Service")
@SupportedOptions(value="org.glassfish.hk2.metadata.location")
public class ServiceProcessor
extends javax.annotation.processing.AbstractProcessor
Modifier and Type | Class and Description |
---|---|
private static class |
ServiceProcessor.DescriptorComparitor
This is a comparator making things that don't really compare, compare.
|
Modifier and Type | Field and Description |
---|---|
private java.util.TreeSet<DescriptorImpl> |
allDescriptors |
private static java.lang.String |
LOCATION_DEFAULT |
private static java.lang.String |
LOCATION_OPTION |
private java.util.ArrayList<javax.lang.model.element.Element> |
originators |
Constructor and Description |
---|
ServiceProcessor() |
Modifier and Type | Method and Description |
---|---|
private void |
createFile() |
javax.lang.model.SourceVersion |
getSupportedSourceVersion()
Gets rid of warnings and this code should work with all source versions
|
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment roundEnv) |
private static final java.lang.String LOCATION_OPTION
private static final java.lang.String LOCATION_DEFAULT
private final java.util.TreeSet<DescriptorImpl> allDescriptors
private final java.util.ArrayList<javax.lang.model.element.Element> originators
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
public javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface javax.annotation.processing.Processor
getSupportedSourceVersion
in class javax.annotation.processing.AbstractProcessor
private void createFile() throws java.io.IOException
java.io.IOException