net.sourceforge.fluxion.spi
Class SpiProcessor

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by 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

Field Summary
 
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
 
Constructor Summary
SpiProcessor()
           
 
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
 

Constructor Detail

SpiProcessor

public SpiProcessor()
Method Detail

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.