JBoss.org Community Documentation
The attribute
element(s) specifies the management attributes exposed by the MBean. The attribute element and its content model are shown in Figure 3.9, “The XMBean attribute element and its content model”.
The attribute
element supported attributes include:
access
: The optional access
attribute defines the read/write access modes of an attribute. It must be one of:
read-only : The attribute may only be read.
write-only : The attribute may only be written.
read-write : The attribute is both readable and writable. This is the implied default.
getMethod
: The getMethod
attribute defines the name of the method which reads the named attribute. This must be specified if the managed attribute should be obtained from the MBean instance.
setMethod
: The setMethod
attribute defines the name of the method which writes the named attribute. This must be specified if the managed attribute should be obtained from the MBean instance.
The key child elements of the attribute element include:
description : A description of the attribute.
name
: The name of the attribute as would be used in the MBeanServer.getAttribute()
operation.
type : The fully qualified class name of the attribute type.
descriptors : Any additional descriptors that affect the attribute persistence, caching, default value, etc.