org.datanucleus.enhancer
Class EnhancerProcessor

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by org.datanucleus.enhancer.EnhancerProcessor
All Implemented Interfaces:
javax.annotation.processing.Processor

@SupportedAnnotationTypes(value="*")
@SupportedSourceVersion(value=RELEASE_5)
@SupportedOptions(value="enhanceAPI")
public class EnhancerProcessor
extends javax.annotation.processing.AbstractProcessor

Enhance classes after javac. PS. This only works for classes that are annotated. If you have a class that is defined in XML yet has no annotations then it will not be discovered by this process.


Nested Class Summary
 class EnhancerProcessor.EnhanceRunnable
          Performs the enhancement
 
Field Summary
static java.lang.String OPTION_API
           
 
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
 
Constructor Summary
EnhancerProcessor()
          Default public constructor
 
Method Summary
 void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
           
 boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> arg0, javax.annotation.processing.RoundEnvironment roundEnv)
           
 
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION_API

public static final java.lang.String OPTION_API
See Also:
Constant Field Values
Constructor Detail

EnhancerProcessor

public EnhancerProcessor()
Default public constructor

Method Detail

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> arg0,
                       javax.annotation.processing.RoundEnvironment roundEnv)
Specified by:
process in interface javax.annotation.processing.Processor
Specified by:
process in class javax.annotation.processing.AbstractProcessor


Copyright © 2011. All Rights Reserved.