net.sourceforge.fluxion.spi
Class SpiProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
net.sourceforge.fluxion.spi.SpiProcessor
- All Implemented Interfaces:
- javax.annotation.processing.Processor
public class SpiProcessor
- extends javax.annotation.processing.AbstractProcessor
Process Spi and SpiProcessor annotations, generating appropriate files in
META-INF/services.
- Author:
- Tony Burdett, Matthew Pocock
Fields inherited from class javax.annotation.processing.AbstractProcessor |
processingEnv |
Method Summary |
java.util.Set<java.lang.String> |
getSupportedAnnotationTypes()
|
java.util.Set<java.lang.String> |
getSupportedOptions()
|
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> typeElements,
javax.annotation.processing.RoundEnvironment roundEnv)
Process @ServiceProvider annotations. |
Methods inherited from class javax.annotation.processing.AbstractProcessor |
getCompletions, getSupportedSourceVersion, init, isInitialized |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpiProcessor
public SpiProcessor()
process
public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> typeElements,
javax.annotation.processing.RoundEnvironment roundEnv)
- Process @ServiceProvider annotations. This will generate appropriate
entries in the META-INF/services file, making classes discoverable at
runtime for anything handling these annotations.
- Specified by:
process
in interface javax.annotation.processing.Processor
- Specified by:
process
in class javax.annotation.processing.AbstractProcessor
getSupportedAnnotationTypes
public java.util.Set<java.lang.String> getSupportedAnnotationTypes()
- Specified by:
getSupportedAnnotationTypes
in interface javax.annotation.processing.Processor
- Overrides:
getSupportedAnnotationTypes
in class javax.annotation.processing.AbstractProcessor
getSupportedOptions
public java.util.Set<java.lang.String> getSupportedOptions()
- Specified by:
getSupportedOptions
in interface javax.annotation.processing.Processor
- Overrides:
getSupportedOptions
in class javax.annotation.processing.AbstractProcessor
Copyright © 2010. All Rights Reserved.