[ 
https://issues.apache.org/jira/browse/PIVOT-111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Todd Volkert resolved PIVOT-111.
--------------------------------

    Resolution: Fixed

This is done.  pivot.wtkx.Bindable defines @Load, @Bind, and bind().  
Subclasses use the annotations, then call bind() to load the WTKX and bind to 
instance variables.

There are two facets to this functionality: the runtime implementation and the 
compile-time implementation.  The default bind() implementation uses reflection 
to load the WTKX and bind to the instance variables.  However, most often, the 
member variables will be private, and attempting to set the value of such a 
field at runtime requires security privileges -- it thus does not work in an 
unsigned applet.  For this use case (or for those wanting to avoid the overhead 
of reflection), there is an annotation processor that can be run on Bindable 
subclasses, which will effectively inline the WTKX binding, avoiding the 
reflection calls and associated security implications.

> Provide annotations to map WTKX data to application member variables
> --------------------------------------------------------------------
>
>                 Key: PIVOT-111
>                 URL: https://issues.apache.org/jira/browse/PIVOT-111
>             Project: Pivot
>          Issue Type: New Feature
>          Components: wtk
>            Reporter: Greg Brown
>            Assignee: Todd Volkert
>            Priority: Minor
>             Fix For: 1.2
>
>
> For example:
> @WTKX(name="resource" [id="id"])
> - if only "name" is specified, it is a root object; otherwise, it is an 
> object within the given root
> - resource can be relative (no leading slash) or absolute (leading slash)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to