org.jvnet.hk2.config.generator
Class ConfigInjectorGenerator

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by org.jvnet.hk2.config.generator.ConfigInjectorGenerator
All Implemented Interfaces:
javax.annotation.processing.Processor

public class ConfigInjectorGenerator
extends javax.annotation.processing.AbstractProcessor

Generates ConfigInjector implementations for Configured objects and ConfigBeanProxy subtypes.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class ConfigInjectorGenerator.FilerCodeWriter
          CodeWriter that generates source code to Filer.
 
Field Summary
 
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
 
Constructor Summary
ConfigInjectorGenerator()
           
 
Method Summary
 java.util.Set<java.lang.String> getSupportedAnnotationTypes()
           
 javax.lang.model.SourceVersion getSupportedSourceVersion()
           
 void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
           
 boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)
           
 
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigInjectorGenerator

public ConfigInjectorGenerator()
Method Detail

getSupportedSourceVersion

public javax.lang.model.SourceVersion getSupportedSourceVersion()
Specified by:
getSupportedSourceVersion in interface javax.annotation.processing.Processor
Overrides:
getSupportedSourceVersion 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

init

public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
Specified by:
init in interface javax.annotation.processing.Processor
Overrides:
init in class javax.annotation.processing.AbstractProcessor

process

public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
                       javax.annotation.processing.RoundEnvironment roundEnv)
Specified by:
process in interface javax.annotation.processing.Processor
Specified by:
process in class javax.annotation.processing.AbstractProcessor


Copyright © 2013 Oracle Corporation. All Rights Reserved.