| javax.management.j2ee.ListenerRegistration
All known Subclasses: org.jboss.management.mejb.ListenerRegistration,
ListenerRegistration | public interface ListenerRegistration extends Serializable(Code) | | ListenerRegistration defines the methods which clients of the MEJB use to add and remove event listeners.
author: thomas.diesler@jboss.org |
addNotificationListener | public void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, RemoteException(Code) | | Add a listener to a registered managed object.
Parameters: name - The name of the managed object on which the listener should be added. Parameters: listener - The listener object which will handle the notifications emitted by the registered managed object. Parameters: filter - The filter object. If filter is null, no filtering will be performed before handling notifications. Parameters: handback - The context to be sent to the listener when a notification is emitted. throws: InstanceNotFoundException - The managed object name provided does not match any of the registered managed objects. throws: RemoteException - A communication exception occurred during the execution of a remote method call |
removeNotificationListener | public void removeNotificationListener(ObjectName name, NotificationListener listener) throws InstanceNotFoundException, ListenerNotFoundException, RemoteException(Code) | | Remove a listener from a registered managed object.
Parameters: name - The name of the managed object on which the listener should be removed. Parameters: listener - The listener object which will handle the notifications emitted by the registered managed object.This method will remove all the information related to this listener. throws: InstanceNotFoundException - The managed object name provided does not match any of the registered managed objects. throws: ListenerNotFoundException - The listener is not registered in the managed object. throws: RemoteException - A communication exception occurred during the execution of a remote method call |
|
|