-
- All Superinterfaces:
- Serializable
public interface ListenerRegistration extends Serializable
ListenerRegistration defines the methods which clients of the MEJB use to add and remove event listeners.- Author:
- Hans Hrasna
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback)
Add a listener to a registered managed object.void
removeNotificationListener(ObjectName name, NotificationListener listener)
Remove a listener from a registered managed object.
-
-
-
Method Detail
-
addNotificationListener
void addNotificationListener(ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, RemoteException
Add a listener to a registered managed object.- Parameters:
name
- The name of the managed object on which the listener should be added.listener
- The listener object which will handle the notifications emitted by the registered managed object.filter
- The filter object. If filter is null, no filtering will be performed before handling notifications.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.RemoteException
- A communication exception occurred during the execution of a remote method call
-
removeNotificationListener
void removeNotificationListener(ObjectName name, NotificationListener listener) throws InstanceNotFoundException, ListenerNotFoundException, RemoteException
Remove a listener from a registered managed object.- Parameters:
name
- The name of the managed object on which the listener should be removed.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.ListenerNotFoundException
- The listener is not registered in the managed object.RemoteException
- A communication exception occurred during the execution of a remote method call
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
22/08/2025 06:08:30 Cette version de la page est en cache (à la date du 22/08/2025 06:08:30) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 19/04/2008, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/management/j2ee/ListenerRegistration.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.