|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=FIELD) public @interface Resource
Marks the field as a resource to be injected.
In order to inject the resources for this class, the resources must be defined in a class resource file. You should name field resources in the resource file using the class name followed by a period (.) and the key:
<classname>.<fieldname>
Optional Element Summary | |
---|---|
java.lang.String |
key
Key for resource injection. |
public abstract java.lang.String key
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |