|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.modeler.BaseNotificationBroadcaster
public class BaseNotificationBroadcaster
Implementation of NotificationBroadcaster
for attribute
change notifications. This class is used by BaseModelMBean
to
handle notifications of attribute change events to interested listeners.
Field Summary | |
---|---|
protected java.util.ArrayList |
entries
The set of registered BaseNotificationBroadcasterEntry
entries. |
Constructor Summary | |
---|---|
BaseNotificationBroadcaster()
|
Method Summary | |
---|---|
void |
addNotificationListener(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 an MBeanNotificationInfo object describing the
notifications sent by this MBean. |
void |
removeNotificationListener(javax.management.NotificationListener listener)
Remove a notification event listener from this MBean. |
void |
removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Remove a notification event listener from this MBean. |
void |
removeNotificationListener(javax.management.NotificationListener listener,
java.lang.Object handback)
Remove a notification event listener from this MBean. |
void |
sendNotification(javax.management.Notification notification)
Send the specified notification to all interested listeners. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ArrayList entries
BaseNotificationBroadcasterEntry
entries.
Constructor Detail |
---|
public BaseNotificationBroadcaster()
Method Detail |
---|
public void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws java.lang.IllegalArgumentException
addNotificationListener
in interface javax.management.NotificationBroadcaster
listener
- Listener that will receive event notificationsfilter
- Filter object used to filter event notifications
actually delivered, or null
for no filteringhandback
- Handback object to be sent along with event
notifications
java.lang.IllegalArgumentException
- if the listener parameter is nullpublic javax.management.MBeanNotificationInfo[] getNotificationInfo()
MBeanNotificationInfo
object describing the
notifications sent by this MBean.
getNotificationInfo
in interface javax.management.NotificationBroadcaster
public void removeNotificationListener(javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationBroadcaster
listener
- The listener to be removed (any and all registrations
for this listener will be eliminated)
javax.management.ListenerNotFoundException
- if this listener is not
registered in the MBeanpublic void removeNotificationListener(javax.management.NotificationListener listener, java.lang.Object handback) throws javax.management.ListenerNotFoundException
listener
- The listener to be removed (any and all registrations
for this listener will be eliminated)handback
- Handback object to be sent along with event
notifications
javax.management.ListenerNotFoundException
- if this listener is not
registered in the MBeanpublic void removeNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback) throws javax.management.ListenerNotFoundException
listener
- The listener to be removed (any and all registrations
for this listener will be eliminated)filter
- Filter object used to filter event notifications
actually delivered, or null
for no filteringhandback
- Handback object to be sent along with event
notifications
javax.management.ListenerNotFoundException
- if this listener is not
registered in the MBeanpublic void sendNotification(javax.management.Notification notification)
notification
- The notification to be sent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |