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.
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.
The scope, returningObj flag, and returningAttributes flag from
the search controls
ctls are used to control the selection
of objects that the listener is interested in,
and determines what information is returned in the eventual
NamingEvent object. Note that the requested
information to be returned might not be present in the
NamingEvent object if they are unavailable or could not be obtained by the
service provider or service.
Parameters:
-
target - The nonnull name of the object resolved relative to this context.
-
filter - The nonnull string filter (see RFC2254).
-
filterArgs - The possibly null array of arguments for the filter.
-
ctls - The possibly null search controls. If null, the default
search controls are used.
-
l - The nonnull listener.
Throws:
-
NamingException - If a problem was encountered while
adding the listener.
See Also:
EventContext.removeNamingListener(javax.naming.event.NamingListener)
,
DirContext.search(javax.naming.Name, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls)
,