test.compliance.core.notification
Class JBossNotificationBroadcasterSupport

java.lang.Object
  extended by 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.

Constructor Summary
JBossNotificationBroadcasterSupport()
          Construct the new notification broadcaster support object
 
Method Summary
 void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 MBeanNotificationInfo[] getNotificationInfo()
           
 void handleNotification(NotificationListener listener, Notification notification, Object handback)
          Handle the notification, the default implementation is to synchronously invoke the listener.
 void removeNotificationListener(NotificationListener listener)
           
 void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 void sendNotification(Notification notification)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossNotificationBroadcasterSupport

public JBossNotificationBroadcasterSupport()
Construct the new notification broadcaster support object

Method Detail

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 notify
notification - the notification
handback - the handback object


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.