pivot.wtkx
Annotation Type Bindable.Load


@Retention(value=RUNTIME)
@Target(value=FIELD)
protected static @interface Bindable.Load

Annotation that causes the annotated field to be loaded via WTKX and bound to the field. This annotation is the entry point into WTKX binding and a prerequisite to using the @Bind annotation.

Author:
gbrown
See Also:
WTKXSerializer.readObject(URL)

Required Element Summary
 String resourceName
          A path name that identifies the WTKX resource to be loaded.
 
Optional Element Summary
 String locale
          The locale with which to load WTKX resources.
 String resources
          The base name of the resources to associate with the WTKX load.
 

Element Detail

resourceName

public abstract String resourceName
A path name that identifies the WTKX resource to be loaded. The root WTKX element will be stored in the annotated field. The path name should be of the form defined by Class.getResource(String) and is relative to the Bindable subclass.

resources

public abstract String resources
The base name of the resources to associate with the WTKX load. The base name should be of the form defined by the Resources class. If unspecified, the WTKX load will be assumed to not use resource strings.

Default:
"\u0000"

locale

public abstract String locale
The locale with which to load WTKX resources. This should be a lowercase two-letter ISO-639 code. If unspecified, the current default locale will be used.

Default:
"\u0000"