Java Reference
In-Depth Information
variable to adequately describe parts of the management interface. Management
software that interacts with your Dynamic MBeans can use the descriptions to
help users better understand how to use your MBeans.
5.3.2
The MBeanFeatureInfo and MBeanParameterInfo classes
Before we examine the metadata classes that describe the management interface,
let's look at their base class ( MBeanFeatureInfo ) and a support class ( MBeanParam-
eterInfo ). Every MBean metadata class is a subclass of the MBeanFeatureInfo
class. The class contains a name and a human-readable description of the fea-
ture. This ensures that every feature described by a subclass has both a name and
a description.
The MBeanParameterInfo class extends MBeanFeatureInfo and provides a
description of arguments to constructors and operations. MBeanParameterInfo
objects add a type field to the name and description fields provided by their
super class. The type field contains the name of the class type of a parameter.
With those three fields, you can adequately describe a method argument.
5.3.3
The MBeanConstructorInfo class
The MBeanConstructorInfo class is a metadata class that describes a single
exposed constructor of an MBean. It is created by using a Constructor object
parameter or by using an array of MBeanParameterInfo objects that describe a con-
structor's signature. Because a constructor is described solely by its signature, the
MBeanConstructorInfo class contains only one method (in addition to its inherited
methods)— getSignature() , which returns the constructor's signature as an Array
of MBeanParameterInfo objects. The following are the class's two constructors:
public MBeanConstructorInfo( String description,
java.lang.reflect.Constructor
constructor )
public MBeanConstructorInfo( String name, String description,
MBeanParameterInfo[] signature )
5.3.4
The MBeanAttributeInfo class
The MBeanAttributeInfo class is a metadata class that describes an exposed
attribute of an MBean. Remember that attributes are exposed with readable
access, writable access, or both readable and writable access. In addition to
describing an attribute's exposed access, the class contains the attribute's name,
description, and type. The following are the two constructors for the MBeanAt-
tributeInfo class:
Search WWH ::




Custom Search