Top Description Methods
org.eclipse.jetty.util.annotation

public @Interface ManagedAttribute

extends Annotation
Annotations
@Retention:RUNTIME
@Documented
@Target:METHOD
Imports
java.lang.annotation.Documented, .ElementType, .Retention, .RetentionPolicy, .Target

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.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the attribute
name
()

name to use for the attribute

public boolean

Returns:

true if a proxy object is involved
proxied
()

Does the managed field exist on a proxy object?

public boolean

Returns:

true if readonly
readonly
()

Is the managed field read-only?

public String

Returns:

the full name of the setter in question
setter
()

If is a field references a setter that doesn't conform to standards for discovery it can be set here.

public String

Returns:

value
value
()

Description of the Managed Attribute

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

nameback to summary
public String name()

name to use for the attribute

Returns:String

the name of the attribute

proxiedback to summary
public boolean proxied()

Does the managed field exist on a proxy object?

Returns:boolean

true if a proxy object is involved

readonlyback to summary
public boolean readonly()

Is the managed field read-only? Required only when a setter exists but should not be exposed via JMX

Returns:boolean

true if readonly

setterback to summary
public String setter()

If is a field references a setter that doesn't conform to standards for discovery it can be set here.

Returns:String

the full name of the setter in question

valueback to summary
public String value()

Description of the Managed Attribute

Returns:String

value