javax.naming.event

Interface ObjectChangeListener

  • All Superinterfaces:
    EventListener, NamingListener

    public interface ObjectChangeListener
    extends NamingListener
    Specifies the method that a listener of a NamingEvent with event type of OBJECT_CHANGED must implement.

    An OBJECT_CHANGED event type is fired when (the contents of) an object has changed. This might mean that its attributes have been modified, added, or removed, and/or that the object itself has been replaced. How the object has changed can be determined by examining the NamingEvent's old and new bindings.

    A listener interested in OBJECT_CHANGED event types must:

    1. Implement this interface and its method (objectChanged())
    2. Implement NamingListener.namingExceptionThrown() so that it will be notified of exceptions thrown while attempting to collect information about the events.
    3. Register with the source using the source's addNamingListener() method.
    A listener that wants to be notified of namespace change events should also implement the NamespaceChangeListener interface.
    Since:
    1.3
    See Also:
    NamingEvent, NamespaceChangeListener, EventContext, EventDirContext
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void objectChanged(NamingEvent evt)
      Called when an object has been changed.

        

    • Method Detail

      • objectChanged

        void objectChanged(NamingEvent evt)
        Called when an object has been changed.

        The binding of the changed object can be obtained using evt.getNewBinding(). Its old binding (before the change) can be obtained using evt.getOldBinding().

        Parameters:
        evt - The nonnull naming event.
        See Also:
        NamingEvent.OBJECT_CHANGED

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.

Document créé le 01/09/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/naming/event/ObjectChangeListener.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

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, ObjectChangeListener

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.

Table des matières Haut