|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Target(value=METHOD) @Retention(value=RUNTIME) public @interface DefaultsTo
Mark an interface method with this annotation to indicate a default value for the property source key
represented by the method. If no property is associated with the key for the method, the default value will be
returned instead. The default can be a plain value given by value()
or a value comprised in whole or
in part of the values of other properties, given by valueOf()
. References to other properties in a
valueOf()
expression are delimited by [
and ]
.
Default values for aggregate types can use a separator given by ValuesSeparatedBy
.
BoundProperty
Optional Element Summary | |
---|---|
String |
value
String representation of the default value for the property source key associated with the marked method. |
String |
valueOf
Expression to give the string representation of a default value for the properties file key associated with the marked method. |
public abstract String value
public abstract String valueOf
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |