Java Reference
In-Depth Information
7.4.5
The ModelMBeanConstructorInfo class
The exposed constructor descriptor is similar to the exposed operation. In fact,
it does not define any new descriptor attributes. Table 7.5 displays its predefined
descriptor attributes.
Table 7.5
Constructor-level descriptor attributes
Descriptor attribute
Possible values
Description
User-defined
Name of the constructor
name
operation
Must be operation
descriptorType
constructor
Indicates this operation is a constructor
role
User-defined
Name used for displays
displayName
Class where the method is defined
class
visibility
1 to 4
Same as MBean level
XML format
Same as MBean level
presentationString
7.4.6
The ModelMBeanNotificationInfo class
The final metadata class is the ModelMBeanNotificationInfo class. It is used to
describe and configure individual notifications that can be emitted by a Model
MBean. The only behavior you can configure is if and where to log this notifica-
tion type. Table 7.6 lists the descriptor attributes associated with this class.
Table 7.6
Notification-level descriptor attributes
Descriptor attribute
Possible values
Description
User-defined
Name of the notification
name
descriptorType
mbean , attribute , operation ,
notification
Type of descriptor
1 to 5
1 =fatal, 2 =server, 3 =error,
4 =warning, 5 =info
severity
Unique key for the message text
messageId
User-defined
Text of the notification
messageText
log
T , F
Whether to log this notification
Fully qualified filename
Where to log this notification infor-
mation; if not specified here, the
MBean level value will be used
logFile
Search WWH ::




Custom Search