| javax.management.NotificationBroadcaster
All known Subclasses: org.huihoo.jfox.service.ComponentSupport, javax.management.MBeanServerDelegate,
NotificationBroadcaster | public interface NotificationBroadcaster (Code) | | Should be implemented by an MBean that emits Notifications. It allows a listener to
be registered within the MBean as notification listener.
author: Young Yang |
addNotificationListener | public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws java.lang.IllegalArgumentException(Code) | | Adds a listener to a registered MBean.
Parameters: listener - The listener object which will handle the notifications emitted by the registered MBean. Parameters: filter - The filter object. If filter is null, no filtering will be performed before handling notifications. Parameters: handback - An opaque object to be sent back to the listener when a notification is emitted. This objectcannot be used by the Notification broadcaster object. It should be resent unchanged with the notificationto the listener. exception: IllegalArgumentException - Listener parameter is null. |
getNotificationInfo | public MBeanNotificationInfo[] getNotificationInfo()(Code) | | Returns a NotificationInfo object contaning the name of the Java class of the notification
and the notification types sent.
|
removeNotificationListener | public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException(Code) | | Removes a listener from a registered MBean.
Parameters: listener - The listener object which will handle the notifications emitted by the registered MBean.This method will remove all the information related to this listener. exception: ListenerNotFoundException - The listener is not registered in the MBean. |
|
|