javax.management
Interface NotificationEmitter

All Superinterfaces:
NotificationBroadcaster
All Known Implementing Classes:
MBeanServerDelegate, NotificationBroadcasterSupport

public interface NotificationEmitter
extends NotificationBroadcaster

Represents a bean that can emit notifications when events occur. Other beans can use this interface to add themselves to the list of recipients of such notifications.

Since:
1.5

Method Summary
 void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object passback)
          Removes the specified listener from the list of recipients of notifications from this bean.
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Method Detail

removeNotificationListener

void removeNotificationListener(NotificationListener listener,
                                NotificationFilter filter,
                                Object passback)
                                throws ListenerNotFoundException
Removes the specified listener from the list of recipients of notifications from this bean. Only the first instance with the supplied filter and passback object is removed. null is used as a valid value for these parameters, rather than as a way to remove all registration instances for the specified listener; for this behaviour instead, see the details of the same method in NotificationBroadcaster.

Parameters:
listener - the listener to remove.
filter - the filter of the listener to remove.
passback - the passback object of the listener to remove.
Throws:
ListenerNotFoundException - if the specified listener is not registered with this bean.
See Also:
NotificationBroadcaster.addNotificationListener(NotificationListener, NotificationFilter, java.lang.Object)