|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface ManagedAttributeThis annotation defines an attribute in either CompositeData (ManagedData) or an open MBean (ManagedObject). An attribute may be read/write (has a setter and a getter), read only (only has a getter), or write only (only has a setter) depending on the declared methods in the class.
A method defines a getter if it returns a non-void type and takes no argument types. Likewise a method defines a setter if it return void and takes exactly one argument.
An id is derived from a method name as follows:
In certain cases, a field annotated with @ManagedAttribute may also represent a read-only attribute. The field must be final, and its type must be one of:
| Optional Element Summary | |
|---|---|
String |
id
The id of the attribute. |
public abstract String id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||