@Documented
@Inherited
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface ConfigMethod
BeanConfig
class. This annotation is not required
for such configuration, but it can be used to improve documentation
and make usage easier.
This annotation will normally be applied to a bean-setting method
with a signature like void setXxx(type)
.
BeanConfig
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
doc
User-directed documentation.
|
java.lang.String |
property
Gives an alternative name for the property defined by this method.
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
example
String representation of an example value for this property,
suitable for use in documentation.
|
boolean |
hide
If true, the setting should not be documented under normal circumstances.
|
int |
sequence
Gives a sequence index indicating the order in which the different
ConfigMethods in a given class should be listed.
|
java.lang.String |
usage
Usage string.
|
public abstract java.lang.String property
setXxx
and the property
value is yyy
, this configuration defined by this method
can be addressed as either the property xxx
or
yyy
.public abstract java.lang.String doc
public abstract java.lang.String example
public abstract java.lang.String usage