Package org.apache.tomcat.util.modeler
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
Fields inherited from class org.apache.tomcat.util.modeler.FeatureInfo
description, name, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNotifType
(String notifType) Add a new notification type to the set managed by an MBean.Create and return aModelMBeanNotificationInfo
object that corresponds to the attribute described by this instance.String[]
void
setDescription
(String description) Override thedescription
property setter.void
Override thename
property 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 thedescription
property setter.- Overrides:
setDescription
in classFeatureInfo
- Parameters:
description
- The new description
-
setName
Override thename
property setter.- Overrides:
setName
in classFeatureInfo
- Parameters:
name
- The new name
-
getNotifTypes
- Returns:
- the set 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 aModelMBeanNotificationInfo
object that corresponds to the attribute described by this instance.- Returns:
- the notification info
-
toString
Return a string representation of this notification descriptor.
-