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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]Array of notification types.protected final ReadWriteLockLock for notification types access.Fields inherited from class FeatureInfo
description, info, 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[]Returns the array of notification types for this MBean.voidsetDescription(String description) Override thedescriptionproperty setter.voidOverride thenameproperty setter.toString()Return a string representation of this notification descriptor.Methods inherited from class FeatureInfo
getDescription, getName, getType, setType
-
Field Details
-
notifTypes
Array of notification types. -
notifTypesLock
Lock for notification types access.
-
-
Constructor Details
-
NotificationInfo
public NotificationInfo()Constructs a new 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.- Returns:
- The array of notification types
-
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
-