|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented @Target(value=FIELD) @Retention(value=RUNTIME) @Inherited public @interface DefaultValue
Declares that the annotated static final field contains the default value for a
property (which may be either Prop annotated or a user-written property).
This annotation is used by Agent.create(Class) and
Agent.create(Class, org.actorsguildframework.Props) to set the default value
for those properties for which no value was specified.
The field that contains the default value must always be both 'static' and 'final'. You can either make it 'public', 'protected' or use the default accessibility (package). The latter is recommended if you do not wish the value to appear in API documentation. 'private' is not possible.
Example:
@Bean
class MyBean {
| Required Element Summary | |
|---|---|
String |
value
The name of the property whose default value this field sets. |
| Element Detail |
|---|
public abstract String value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||