pivot.wtkx
Class BindProcessor

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by pivot.wtkx.BindProcessor
All Implemented Interfaces:
Processor

@SupportedAnnotationTypes(value="pivot.wtkx.*")
@SupportedSourceVersion(value=RELEASE_6)
public class BindProcessor
extends AbstractProcessor

Annotation processor that may be run on classes that use the @Load and @Bind annotations in order to cause the WTKX binding process to avoid security-constrained reflection calls. Callers will typically want to do this if they plan to run their Pivot application in an unsigned applet, since the reflective bind process requires security privileges not granted to un-trusted applets.

Note: this class utilizes classes specific to Sun's javac implementation, and as such, it will only work with a Sun javac compiler.

Usage:

To use this annotation processor at the command line, pass the following options to javac:
     -processor pivot.wtkx.BindProcessor
 
To use this annotation processor with Ant, add the following line to your Ant javac task:
     <compilerarg line="-processor pivot.wtkx.BindProcessor"/>
 

Author:
tvolkert
See Also:
Bindable.Load, Bindable.Bind

Field Summary
 
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
 
Constructor Summary
BindProcessor()
           
 
Method Summary
 void init(ProcessingEnvironment processingEnvironment)
           
 boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnvironment)
           
 
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
 

Constructor Detail

BindProcessor

public BindProcessor()
Method Detail

init

public void init(ProcessingEnvironment processingEnvironment)
Specified by:
init in interface Processor
Overrides:
init in class AbstractProcessor

process

public boolean process(Set<? extends TypeElement> annotations,
                       RoundEnvironment roundEnvironment)
Specified by:
process in interface Processor
Specified by:
process in class AbstractProcessor