| Package | Description | 
|---|---|
| javax.naming.event | Provides support for event notification when accessing naming and
directory services. | 
| javax.naming.ldap | Provides support for LDAPv3 extended operations and controls. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | NamespaceChangeListenerSpecifies the methods that a listener interested in namespace changes
 must implement. | 
| interface  | ObjectChangeListenerSpecifies the method that a listener of a NamingEvent
 with event type of OBJECT_CHANGED must implement. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | EventContext. addNamingListener(Name target,
                 int scope,
                 NamingListener l)Adds a listener for receiving naming events fired
 when the object(s) identified by a target and scope changes. | 
| void | EventDirContext. addNamingListener(Name target,
                 String filter,
                 Object[] filterArgs,
                 SearchControls ctls,
                 NamingListener l)Adds a listener for receiving naming events fired
 when objects identified by the search filter filter and
 filter arguments at the object named by the target are modified. | 
| void | EventDirContext. addNamingListener(Name target,
                 String filter,
                 SearchControls ctls,
                 NamingListener l)Adds a listener for receiving naming events fired
 when objects identified by the search filter filter at
 the object named by target are modified. | 
| void | EventContext. addNamingListener(String target,
                 int scope,
                 NamingListener l)Adds a listener for receiving naming events fired
 when the object named by the string target name and scope changes. | 
| void | EventDirContext. addNamingListener(String target,
                 String filter,
                 Object[] filterArgs,
                 SearchControls ctls,
                 NamingListener l)Adds a listener for receiving naming events fired when
 objects identified by the search filter filter
 and filter arguments at the
 object named by the string target name are modified. | 
| void | EventDirContext. addNamingListener(String target,
                 String filter,
                 SearchControls ctls,
                 NamingListener l)Adds a listener for receiving naming events fired when
 objects identified by the search filter filter at the
 object named by the string target name are modified. | 
| void | NamingExceptionEvent. dispatch(NamingListener listener)Invokes the namingExceptionThrown() method on
 a listener using this event. | 
| void | NamingEvent. dispatch(NamingListener listener)Invokes the appropriate listener method on this event. | 
| void | EventContext. removeNamingListener(NamingListener l)Removes a listener from receiving naming events fired
 by this EventContext. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | UnsolicitedNotificationListenerThis interface is for handling UnsolicitedNotificationEvent. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.