|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Target(value={METHOD,FIELD,TYPE}) @Retention(value=RUNTIME) public @interface Description
This annotation is applied to a method that takes no arguments and returns a value that is converted into a String for use in the ObjectName when an instance of the enclosing class is used to construct an open MBean.
Required Element Summary | |
---|---|
java.lang.String |
value
The description to be applied to the annotated element. |
Optional Element Summary | |
---|---|
java.lang.String |
key
Optional key to use in a resource bundle for this description. |
Element Detail |
---|
public abstract java.lang.String value
public abstract java.lang.String key
If this key is not present, the default key is given by the class name, if this annotation appears on a class, or the class name.method name if this annotation appears on a method. It is an error to use the default value for more than one method of the same name, except for setters and getters.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |