org.norther.tammi.leaf.jfc
Class NotificationDispatcher
java.lang.Object
org.norther.tammi.leaf.jfc.NotificationDispatcher
- All Implemented Interfaces:
- Serializable, EventListener, NotificationListener, AncestorListener
public class NotificationDispatcher
- extends Object
- implements NotificationListener, AncestorListener, Serializable
An ancestor listener implementation dispatching MBean notifications to the
source notification listener component depending on its visibility. the
component must implement the NotificationListener interface.
If the component implements the AncestorListener interface, it
will also receive ancestor events.
- Author:
- Ilkka Priha
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotificationDispatcher
public NotificationDispatcher(ObjectName name,
NotificationFilter filter,
Object handback)
- Constructs a new listener for the named MBean.
- Parameters:
name - the name of the MBean.filter - an optional filter.handback - an optional handback.
NotificationDispatcher
public NotificationDispatcher(MBeanServer server,
ObjectName name,
NotificationFilter filter,
Object handback)
- Constructs a new listener for the named MBean in the specified MBean
server.
- Parameters:
name - the name of the MBean.server - the MBean server.filter - an optional filter.handback - an optional handback.
handleNotification
public void handleNotification(Notification notif,
Object handback)
- Specified by:
handleNotification in interface NotificationListener
ancestorAdded
public void ancestorAdded(AncestorEvent event)
- Specified by:
ancestorAdded in interface AncestorListener
ancestorRemoved
public void ancestorRemoved(AncestorEvent event)
- Specified by:
ancestorRemoved in interface AncestorListener
ancestorMoved
public void ancestorMoved(AncestorEvent event)
- Specified by:
ancestorMoved in interface AncestorListener
Copyright © 2004 The Norther Organization. All rights reserved.