org.jboss.mx.server
public class: NotificationListenerProxy [javadoc |
source]
java.lang.Object
org.jboss.mx.server.NotificationListenerProxy
All Implemented Interfaces:
NotificationListener
A notification listener used to forward notifications to listeners
added through the mbean server.
The original source is replaced with the object name.
- author:
< - a href="mailto:Adrian.Brock@HappeningTimes.com">Adrian Brock.
- version:
$ - Revision: 37459 $
| Method from org.jboss.mx.server.NotificationListenerProxy Detail: |
public void handleNotification(Notification notification,
Object handback) {
if (notification == null)
return;
// Forward the notification with the object name as source
// FIXME: This overwrites the original source, there is no way
// to put it back with the current spec
notification.setSource(name);
listener.handleNotification(notification, handback);
}
|