Annotation Type ManagedAttribute
The
@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.-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionname to use for the attributeboolean
Does the managed field exist on a proxy object?boolean
Is the managed field read-only? Required only when a setter exists but should not be exposed via JMXIf is a field references a setter that doesn't conform to standards for discovery it can be set here.Description of the Managed Attribute
-
Element Details
-
value
String valueDescription of the Managed Attribute- Returns:
- value
- Default:
- "Not Specified"
-
name
String namename to use for the attribute- Returns:
- the name of the attribute
- Default:
- ""
-
readonly
boolean readonlyIs the managed field read-only? Required only when a setter exists but should not be exposed via JMX- Returns:
- true if readonly
- Default:
- false
-
proxied
boolean proxiedDoes the managed field exist on a proxy object?- Returns:
- true if a proxy object is involved
- Default:
- false
-
setter
String setterIf is a field references a setter that doesn't conform to standards for discovery it can be set here.- Returns:
- the full name of the setter in question
- Default:
- ""
-