pivot.wtkx
Class BindProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BindProcessor
public BindProcessor()
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