Package org.apache.commons.modeler
Class NotificationInfo
- java.lang.Object
-
- org.apache.commons.modeler.FeatureInfo
-
- org.apache.commons.modeler.NotificationInfo
-
- All Implemented Interfaces:
java.io.Serializable
public class NotificationInfo extends FeatureInfo implements java.io.Serializable
Internal configuration information for a
Notificationdescriptor.- Version:
- $Revision: 480402 $ $Date: 2006-11-29 04:43:23 +0000 (Wed, 29 Nov 2006) $
- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.management.modelmbean.ModelMBeanNotificationInfoinfoTheModelMBeanNotificationInfoobject that corresponds to thisNotificationInfoinstance.protected java.lang.String[]notifTypes(package private) static longserialVersionUID-
Fields inherited from class org.apache.commons.modeler.FeatureInfo
description, fields, name
-
-
Constructor Summary
Constructors Constructor Description NotificationInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNotifType(java.lang.String notifType)Add a new notification type to the set managed by an MBean.javax.management.modelmbean.ModelMBeanNotificationInfocreateNotificationInfo()Create and return aModelMBeanNotificationInfoobject that corresponds to the attribute described by this instance.java.lang.String[]getNotifTypes()The set of notification types for this MBean.voidsetDescription(java.lang.String description)Override thedescriptionproperty setter.voidsetName(java.lang.String name)Override thenameproperty setter.java.lang.StringtoString()Return a string representation of this notification descriptor.-
Methods inherited from class org.apache.commons.modeler.FeatureInfo
addField, addFields, getDescription, getFields, getName
-
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
info
transient javax.management.modelmbean.ModelMBeanNotificationInfo info
TheModelMBeanNotificationInfoobject that corresponds to thisNotificationInfoinstance.
-
notifTypes
protected java.lang.String[] notifTypes
-
-
Method Detail
-
setDescription
public void setDescription(java.lang.String description)
Override thedescriptionproperty setter.- Overrides:
setDescriptionin classFeatureInfo- Parameters:
description- The new description
-
setName
public void setName(java.lang.String name)
Override thenameproperty setter.- Overrides:
setNamein classFeatureInfo- Parameters:
name- The new name
-
getNotifTypes
public java.lang.String[] getNotifTypes()
The set of notification types for this MBean.
-
addNotifType
public void addNotifType(java.lang.String notifType)
Add a new notification type to the set managed by an MBean.- Parameters:
notifType- The new notification type
-
createNotificationInfo
public javax.management.modelmbean.ModelMBeanNotificationInfo createNotificationInfo()
Create and return aModelMBeanNotificationInfoobject that corresponds to the attribute described by this instance.
-
toString
public java.lang.String toString()
Return a string representation of this notification descriptor.- Overrides:
toStringin classjava.lang.Object
-
-