@Retention(value=RUNTIME) @Documented @Target(value=METHOD) public @interface ManagedAttribute
@ManagedAttribute
annotation is used to indicate that a given method
exposes a JMX attribute. This annotation is placed always on the reader
method of a given attribute. Unless it is marked as read-only in the
configuration of the annotation a corresponding setter is looked for
following normal naming conventions. For example if this annotation is
on a method called getFoo() then a method called setFoo() would be looked
for and if found wired automatically into the jmx attribute.Modifier and Type | Optional Element and Description |
---|---|
String |
name
name to use for the attribute
|
boolean |
proxied
Does the managed field exist on a proxy object?
|
boolean |
readonly
Is the managed field read-only?
Required only when a setter exists but should not be exposed via JMX
|
String |
setter
If is a field references a setter that doesn't conform to standards for discovery
it can be set here.
|
String |
value
Description of the Managed Attribute
|
public abstract String value
public abstract String name
public abstract boolean readonly
public abstract boolean proxied
public abstract String setter
Copyright © 1995-2016 Webtide. All Rights Reserved.