Package org.apache.tomcat.util.modeler
Class BaseNotificationBroadcaster
- java.lang.Object
- 
- org.apache.tomcat.util.modeler.BaseNotificationBroadcaster
 
- 
- All Implemented Interfaces:
- javax.management.NotificationBroadcaster
 
 public class BaseNotificationBroadcaster extends java.lang.Object implements javax.management.NotificationBroadcasterImplementation ofNotificationBroadcasterfor attribute change notifications. This class is used byBaseModelMBeanto handle notifications of attribute change events to interested listeners.- Author:
- Craig R. McClanahan, Costin Manolache
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.ArrayList<org.apache.tomcat.util.modeler.BaseNotificationBroadcasterEntry>entriesThe set of registeredBaseNotificationBroadcasterEntryentries.
 - 
Constructor SummaryConstructors Constructor Description BaseNotificationBroadcaster()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)Add a notification event listener to this MBean.javax.management.MBeanNotificationInfo[]getNotificationInfo()Return anMBeanNotificationInfoobject describing the notifications sent by this MBean.voidremoveNotificationListener(javax.management.NotificationListener listener)Remove a notification event listener from this MBean.voidsendNotification(javax.management.Notification notification)Send the specified notification to all interested listeners.
 
- 
- 
- 
Method Detail- 
addNotificationListenerpublic void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws java.lang.IllegalArgumentExceptionAdd a notification event listener to this MBean.- Specified by:
- addNotificationListenerin interface- javax.management.NotificationBroadcaster
- Parameters:
- listener- Listener that will receive event notifications
- filter- Filter object used to filter event notifications actually delivered, or- nullfor no filtering
- handback- Handback object to be sent along with event notifications
- Throws:
- java.lang.IllegalArgumentException- if the listener parameter is null
 
 - 
getNotificationInfopublic javax.management.MBeanNotificationInfo[] getNotificationInfo() Return anMBeanNotificationInfoobject describing the notifications sent by this MBean.- Specified by:
- getNotificationInfoin interface- javax.management.NotificationBroadcaster
 
 - 
removeNotificationListenerpublic void removeNotificationListener(javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundExceptionRemove a notification event listener from this MBean.- Specified by:
- removeNotificationListenerin interface- javax.management.NotificationBroadcaster
- Parameters:
- listener- The listener to be removed (any and all registrations for this listener will be eliminated)
- Throws:
- javax.management.ListenerNotFoundException- if this listener is not registered in the MBean
 
 - 
sendNotificationpublic void sendNotification(javax.management.Notification notification) Send the specified notification to all interested listeners.- Parameters:
- notification- The notification to be sent
 
 
- 
 
-