test.compliance.core.notification
Class JBossNotificationBroadcasterSupport
java.lang.Object
test.compliance.core.notification.JBossNotificationBroadcasterSupport
- All Implemented Interfaces:
- NotificationBroadcaster, NotificationEmitter
public class JBossNotificationBroadcasterSupport
- extends Object
- implements NotificationEmitter
A helper class for notification broadcasters/emitters
- Version:
- $Revision: 81023 $
- Author:
- Juha Lindfors., Adrian Brock.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JBossNotificationBroadcasterSupport
public JBossNotificationBroadcasterSupport()
- Construct the new notification broadcaster support object
addNotificationListener
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
- Specified by:
addNotificationListener
in interface NotificationBroadcaster
removeNotificationListener
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
- Specified by:
removeNotificationListener
in interface NotificationBroadcaster
- Throws:
ListenerNotFoundException
removeNotificationListener
public void removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws ListenerNotFoundException
- Specified by:
removeNotificationListener
in interface NotificationEmitter
- Throws:
ListenerNotFoundException
getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfo
in interface NotificationBroadcaster
sendNotification
public void sendNotification(Notification notification)
handleNotification
public void handleNotification(NotificationListener listener,
Notification notification,
Object handback)
- Handle the notification, the default implementation is to synchronously invoke the listener.
- Parameters:
listener
- the listener to notifynotification
- the notificationhandback
- the handback object
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.