Java Reference
In-Depth Information
can take advantage of its additional capabilities. The behavior and configuration
of these abilities lies within the ModelMBeanInfo object set in a Model MBean.
This section will walk you through this class and all the features available to con-
figure for a Model MBean.
Not only do Model MBeans use a subclass of the MBeanInfo class ( ModelMBean-
Info ) to contain their metadata, each metadata class covered in chapter 5 also
has a subclass used by Model MBeans. These subclasses provide the mechanisms
to define the policies governing the behavior of a Model MBean. Table 7.1 lists
the metadata classes and their parents.
Table 7.1
The metadata classes of the Model MBean used to describe its management interface
Class
Super class
Purpose
Describes a Model MBean
attribute
ModelMBeanAttributeInfo
MBeanAttributeInfo
ModelMBeanConstructorInfo
MBeanConstructorInfo
Describes a Model MBean
constructor
Describes a Model MBean
notification
ModelMBeanNotificationInfo
MBeanNotificationInfo
Describes a Model MBean
operation
ModelMBeanOperationInfo
MBeanOperationInfo
ModelMBeanInfo
MBeanInfo
Describes the policies of the
MBean and contains the
other metadata objects
We discussed the super classes of the Model MBean metadata classes in chapter 5,
so we will not cover their methods again. For more information about how the
metadata classes are used to describe exposed attribute, operations, and so forth,
see chapter 5. The next several sections will walk you through each of the new
metadata classes and what they offer to support the Model MBean.
7.4.1
Using descriptors
The next several subsections deal with the metadata objects that describe
attributes, operations, notifications, and constructors in a Model MBean's man-
agement interface. But before we dive into the first class, it is important to
explore what they all have in common. Each metadata class contains an instance
of the javax.management.Descriptor interface: the javax.management.model-
mbean.DescriptorSupport class.
Search WWH ::




Custom Search