Class NotificationInfo
java.lang.Object
org.apache.tomcat.util.modeler.FeatureInfo
org.apache.tomcat.util.modeler.NotificationInfo
- All Implemented Interfaces:
Serializable
Internal configuration information for a Notification descriptor.
- Author:
- Craig R. McClanahan
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.tomcat.util.modeler.FeatureInfo
description, name, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotifType(String notifType) Add a new notification type to the set managed by an MBean.Create and return aModelMBeanNotificationInfoobject that corresponds to the attribute described by this instance.String[]voidsetDescription(String description) Override thedescriptionproperty setter.voidOverride thenameproperty setter.toString()Return a string representation of this notification descriptor.Methods inherited from class org.apache.tomcat.util.modeler.FeatureInfo
getDescription, getName, getType, setType
-
Field Details
-
notifTypes
-
notifTypesLock
-
-
Constructor Details
-
NotificationInfo
public NotificationInfo()
-
-
Method Details
-
setDescription
Override thedescriptionproperty setter.- Overrides:
setDescriptionin classFeatureInfo- Parameters:
description- The new description
-
setName
Override thenameproperty setter.- Overrides:
setNamein classFeatureInfo- Parameters:
name- The new name
-
getNotifTypes
- Returns:
- the array of notification types for this MBean.
-
addNotifType
Add a new notification type to the set managed by an MBean.- Parameters:
notifType- The new notification type
-
createNotificationInfo
Create and return aModelMBeanNotificationInfoobject that corresponds to the attribute described by this instance.- Returns:
- the notification info
-
toString
-