|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
A helper class for notification broadcasters/emitters
Constructor Summary | |
JBossNotificationBroadcasterSupport()
Construct the new notification broadcaster support object |
Method Summary | |
void |
addNotificationListener(NotificationListener (src) listener,
NotificationFilter (src) filter,
java.lang.Object handback)
Add a listener to an MBean. |
MBeanNotificationInfo (src) [] |
getNotificationInfo()
Returns the notification metadata associated with the MBean. |
void |
handleNotification(NotificationListener (src) listener,
Notification (src) notification,
java.lang.Object handback)
Handle the notification, the default implementation is to synchronously invoke the listener. |
void |
removeNotificationListener(NotificationListener (src) listener)
Removes a listener from an MBean. |
void |
removeNotificationListener(NotificationListener (src) listener,
NotificationFilter (src) filter,
java.lang.Object handback)
Removes a listener from the Emitter. |
void |
sendNotification(Notification (src) notification)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JBossNotificationBroadcasterSupport()
Method Detail |
public void addNotificationListener(NotificationListener (src) listener, NotificationFilter (src) filter, java.lang.Object handback)
NotificationBroadcaster (src)
addNotificationListener
in interface NotificationBroadcaster (src)
listener
- implementation of the listener objectfilter
- implementation of the filter object or null
if no filtering is requiredhandback
- A handback object associated with each notification
sent by this notification broadcaster.public void removeNotificationListener(NotificationListener (src) listener) throws ListenerNotFoundException (src)
NotificationBroadcaster (src)
removeNotificationListener
in interface NotificationBroadcaster (src)
listener
- the listener object to remove
ListenerNotFoundException (src)
- if the listener was not foundpublic void removeNotificationListener(NotificationListener (src) listener, NotificationFilter (src) filter, java.lang.Object handback) throws ListenerNotFoundException (src)
NotificationEmitter (src)
Only the listener, filter, handback triplet is removed
removeNotificationListener
in interface NotificationEmitter (src)
listener
- the listener object to removefilter
- the filter registered with the listenerhandback
- the handback object associated with the registered listener
ListenerNotFoundException (src)
- if the listener was not foundpublic MBeanNotificationInfo (src) [] getNotificationInfo()
NotificationBroadcaster (src)
getNotificationInfo
in interface NotificationBroadcaster (src)
MBeanNotificationInfo
(src) public void sendNotification(Notification (src) notification)
public void handleNotification(NotificationListener (src) listener, Notification (src) notification, java.lang.Object handback)
listener
- the listener to notifynotification
- the notificationhandback
- the handback object
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |