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
public class NotificationInfo extends FeatureInfo
Internal configuration information for a
Notificationdescriptor.- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String[]notifTypesprotected ReadWriteLocknotifTypesLock-
Fields inherited from class org.apache.tomcat.util.modeler.FeatureInfo
description, name, type
-
-
Constructor Summary
Constructors Constructor Description NotificationInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNotifType(String notifType)Add a new notification type to the set managed by an MBean.MBeanNotificationInfocreateNotificationInfo()Create and return aModelMBeanNotificationInfoobject that corresponds to the attribute described by this instance.String[]getNotifTypes()voidsetDescription(String description)Override thedescriptionproperty setter.voidsetName(String name)Override thenameproperty setter.StringtoString()Return a string representation of this notification descriptor.-
Methods inherited from class org.apache.tomcat.util.modeler.FeatureInfo
getDescription, getName, getType, setType
-
-
-
-
Field Detail
-
notifTypes
protected String[] notifTypes
-
notifTypesLock
protected final ReadWriteLock notifTypesLock
-
-
Method Detail
-
setDescription
public void setDescription(String description)
Override thedescriptionproperty setter.- Overrides:
setDescriptionin classFeatureInfo- Parameters:
description- The new description
-
setName
public void setName(String name)
Override thenameproperty setter.- Overrides:
setNamein classFeatureInfo- Parameters:
name- The new name
-
getNotifTypes
public String[] getNotifTypes()
- Returns:
- the set of notification types for this MBean.
-
addNotifType
public void addNotifType(String notifType)
Add a new notification type to the set managed by an MBean.- Parameters:
notifType- The new notification type
-
createNotificationInfo
public MBeanNotificationInfo createNotificationInfo()
Create and return aModelMBeanNotificationInfoobject that corresponds to the attribute described by this instance.- Returns:
- the notification info
-
-