javax.naming.event
Interface EventDirContext

All Superinterfaces:
Context sample code for javax.naming.Context definition code for javax.naming.Context , DirContext sample code for javax.naming.directory.DirContext definition code for javax.naming.directory.DirContext , EventContext sample code for javax.naming.event.EventContext definition code for javax.naming.event.EventContext

public interface EventDirContext
extends EventContext sample code for javax.naming.event.EventContext definition code for javax.naming.event.EventContext , DirContext sample code for javax.naming.directory.DirContext definition code for javax.naming.directory.DirContext

Contains methods for registering listeners to be notified of events fired when objects named in a directory context changes.

The methods in this interface support identification of objects by RFC 2254 search filters.

Using the search filter, it is possible to register interest in objects that do not exist at the time of registration but later come into existence and satisfy the filter. However, there might be limitations in the extent to which this can be supported by the service provider and underlying protocol/service. If the caller submits a filter that cannot be supported in this way, addNamingListener() throws an InvalidSearchFilterException.

See EventContext for a description of event source and target, and information about listener registration/deregistration that are also applicable to methods in this interface. See the package description for information on threading issues.

A SearchControls or array object passed as a parameter to any method is owned by the caller. The service provider will not modify the object or keep a reference to it.

Since:
1.3

Field Summary
 
Fields inherited from interface javax.naming.event.EventContext sample code for javax.naming.event.EventContext definition code for javax.naming.event.EventContext
OBJECT_SCOPE sample code for javax.naming.event.EventContext.OBJECT_SCOPE definition code for javax.naming.event.EventContext.OBJECT_SCOPE , ONELEVEL_SCOPE sample code for javax.naming.event.EventContext.ONELEVEL_SCOPE definition code for javax.naming.event.EventContext.ONELEVEL_SCOPE , SUBTREE_SCOPE sample code for javax.naming.event.EventContext.SUBTREE_SCOPE definition code for javax.naming.event.EventContext.SUBTREE_SCOPE
 
Fields inherited from interface javax.naming.Context sample code for javax.naming.Context definition code for javax.naming.Context
APPLET sample code for javax.naming.Context.APPLET definition code for javax.naming.Context.APPLET , AUTHORITATIVE sample code for javax.naming.Context.AUTHORITATIVE definition code for javax.naming.Context.AUTHORITATIVE , BATCHSIZE sample code for javax.naming.Context.BATCHSIZE definition code for javax.naming.Context.BATCHSIZE , DNS_URL sample code for javax.naming.Context.DNS_URL definition code for javax.naming.Context.DNS_URL , INITIAL_CONTEXT_FACTORY sample code for javax.naming.Context.INITIAL_CONTEXT_FACTORY definition code for javax.naming.Context.INITIAL_CONTEXT_FACTORY , LANGUAGE sample code for javax.naming.Context.LANGUAGE definition code for javax.naming.Context.LANGUAGE , OBJECT_FACTORIES sample code for javax.naming.Context.OBJECT_FACTORIES definition code for javax.naming.Context.OBJECT_FACTORIES , PROVIDER_URL sample code for javax.naming.Context.PROVIDER_URL definition code for javax.naming.Context.PROVIDER_URL , REFERRAL sample code for javax.naming.Context.REFERRAL definition code for javax.naming.Context.REFERRAL , SECURITY_AUTHENTICATION sample code for javax.naming.Context.SECURITY_AUTHENTICATION definition code for javax.naming.Context.SECURITY_AUTHENTICATION , SECURITY_CREDENTIALS sample code for javax.naming.Context.SECURITY_CREDENTIALS definition code for javax.naming.Context.SECURITY_CREDENTIALS , SECURITY_PRINCIPAL sample code for javax.naming.Context.SECURITY_PRINCIPAL definition code for javax.naming.Context.SECURITY_PRINCIPAL , SECURITY_PROTOCOL sample code for javax.naming.Context.SECURITY_PROTOCOL definition code for javax.naming.Context.SECURITY_PROTOCOL , STATE_FACTORIES sample code for javax.naming.Context.STATE_FACTORIES definition code for javax.naming.Context.STATE_FACTORIES , URL_PKG_PREFIXES sample code for javax.naming.Context.URL_PKG_PREFIXES definition code for javax.naming.Context.URL_PKG_PREFIXES
 
Fields inherited from interface javax.naming.directory.DirContext sample code for javax.naming.directory.DirContext definition code for javax.naming.directory.DirContext
ADD_ATTRIBUTE sample code for javax.naming.directory.DirContext.ADD_ATTRIBUTE definition code for javax.naming.directory.DirContext.ADD_ATTRIBUTE , REMOVE_ATTRIBUTE sample code for javax.naming.directory.DirContext.REMOVE_ATTRIBUTE definition code for javax.naming.directory.DirContext.REMOVE_ATTRIBUTE , REPLACE_ATTRIBUTE sample code for javax.naming.directory.DirContext.REPLACE_ATTRIBUTE definition code for javax.naming.directory.DirContext.REPLACE_ATTRIBUTE
 
Fields inherited from interface javax.naming.Context sample code for javax.naming.Context definition code for javax.naming.Context
APPLET sample code for javax.naming.Context.APPLET definition code for javax.naming.Context.APPLET , AUTHORITATIVE sample code for javax.naming.Context.AUTHORITATIVE definition code for javax.naming.Context.AUTHORITATIVE , BATCHSIZE sample code for javax.naming.Context.BATCHSIZE definition code for javax.naming.Context.BATCHSIZE , DNS_URL sample code for javax.naming.Context.DNS_URL definition code for javax.naming.Context.DNS_URL , INITIAL_CONTEXT_FACTORY sample code for javax.naming.Context.INITIAL_CONTEXT_FACTORY definition code for javax.naming.Context.INITIAL_CONTEXT_FACTORY , LANGUAGE sample code for javax.naming.Context.LANGUAGE definition code for javax.naming.Context.LANGUAGE , OBJECT_FACTORIES sample code for javax.naming.Context.OBJECT_FACTORIES definition code for javax.naming.Context.OBJECT_FACTORIES , PROVIDER_URL sample code for javax.naming.Context.PROVIDER_URL definition code for javax.naming.Context.PROVIDER_URL , REFERRAL sample code for javax.naming.Context.REFERRAL definition code for javax.naming.Context.REFERRAL , SECURITY_AUTHENTICATION sample code for javax.naming.Context.SECURITY_AUTHENTICATION definition code for javax.naming.Context.SECURITY_AUTHENTICATION , SECURITY_CREDENTIALS sample code for javax.naming.Context.SECURITY_CREDENTIALS definition code for javax.naming.Context.SECURITY_CREDENTIALS , SECURITY_PRINCIPAL sample code for javax.naming.Context.SECURITY_PRINCIPAL definition code for javax.naming.Context.SECURITY_PRINCIPAL , SECURITY_PROTOCOL sample code for javax.naming.Context.SECURITY_PROTOCOL definition code for javax.naming.Context.SECURITY_PROTOCOL , STATE_FACTORIES sample code for javax.naming.Context.STATE_FACTORIES definition code for javax.naming.Context.STATE_FACTORIES , URL_PKG_PREFIXES sample code for javax.naming.Context.URL_PKG_PREFIXES definition code for javax.naming.Context.URL_PKG_PREFIXES
 
Method Summary
 void addNamingListener sample code for javax.naming.event.EventDirContext.addNamingListener(javax.naming.Name, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls, javax.naming.event.NamingListener) definition code for javax.naming.event.EventDirContext.addNamingListener(javax.naming.Name, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls, javax.naming.event.NamingListener) (Name sample code for javax.naming.Name definition code for javax.naming.Name  target, String sample code for java.lang.String definition code for java.lang.String  filter, Object sample code for java.lang.Object definition code for java.lang.Object [] filterArgs, SearchControls sample code for javax.naming.directory.SearchControls definition code for javax.naming.directory.SearchControls  ctls, NamingListener sample code for javax.naming.event.NamingListener definition code for javax.naming.event.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 addNamingListener sample code for javax.naming.event.EventDirContext.addNamingListener(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener) definition code for javax.naming.event.EventDirContext.addNamingListener(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener) (Name sample code for javax.naming.Name definition code for javax.naming.Name  target, String sample code for java.lang.String definition code for java.lang.String  filter, SearchControls sample code for javax.naming.directory.SearchControls definition code for javax.naming.directory.SearchControls  ctls, NamingListener sample code for javax.naming.event.NamingListener definition code for javax.naming.event.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 addNamingListener sample code for javax.naming.event.EventDirContext.addNamingListener(java.lang.String, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls, javax.naming.event.NamingListener) definition code for javax.naming.event.EventDirContext.addNamingListener(java.lang.String, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls, javax.naming.event.NamingListener) (String sample code for java.lang.String definition code for java.lang.String  target, String sample code for java.lang.String definition code for java.lang.String  filter, Object sample code for java.lang.Object definition code for java.lang.Object [] filterArgs, SearchControls sample code for javax.naming.directory.SearchControls definition code for javax.naming.directory.SearchControls  ctls, NamingListener sample code for javax.naming.event.NamingListener definition code for javax.naming.event.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 addNamingListener sample code for javax.naming.event.EventDirContext.addNamingListener(java.lang.String, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener) definition code for javax.naming.event.EventDirContext.addNamingListener(java.lang.String, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener) (String sample code for java.lang.String definition code for java.lang.String  target, String sample code for java.lang.String definition code for java.lang.String  filter, SearchControls sample code for javax.naming.directory.SearchControls definition code for javax.naming.directory.SearchControls  ctls, NamingListener sample code for javax.naming.event.NamingListener definition code for javax.naming.event.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.
 
Methods inherited from interface javax.naming.event.EventContext sample code for javax.naming.event.EventContext definition code for javax.naming.event.EventContext
addNamingListener sample code for javax.naming.event.EventContext.addNamingListener(javax.naming.Name, int, javax.naming.event.NamingListener) definition code for javax.naming.event.EventContext.addNamingListener(javax.naming.Name, int, javax.naming.event.NamingListener) , addNamingListener sample code for javax.naming.event.EventContext.addNamingListener(java.lang.String, int, javax.naming.event.NamingListener) definition code for javax.naming.event.EventContext.addNamingListener(java.lang.String, int, javax.naming.event.NamingListener) , removeNamingListener sample code for javax.naming.event.EventContext.removeNamingListener(javax.naming.event.NamingListener) definition code for javax.naming.event.EventContext.removeNamingListener(javax.naming.event.NamingListener) , targetMustExist sample code for javax.naming.event.EventContext.targetMustExist() definition code for javax.naming.event.EventContext.targetMustExist()
 
Methods inherited from interface javax.naming.Context sample code for javax.naming.Context definition code for javax.naming.Context
addToEnvironment sample code for javax.naming.Context.addToEnvironment(java.lang.String, java.lang.Object) definition code for javax.naming.Context.addToEnvironment(java.lang.String, java.lang.Object) , bind sample code for javax.naming.Context.bind(javax.naming.Name, java.lang.Object) definition code for javax.naming.Context.bind(javax.naming.Name, java.lang.Object) , bind sample code for javax.naming.Context.bind(java.lang.String, java.lang.Object) definition code for javax.naming.Context.bind(java.lang.String, java.lang.Object) , close sample code for javax.naming.Context.close() definition code for javax.naming.Context.close() , composeName sample code for javax.naming.Context.composeName(javax.naming.Name, javax.naming.Name) definition code for javax.naming.Context.composeName(javax.naming.Name, javax.naming.Name) , composeName sample code for javax.naming.Context.composeName(java.lang.String, java.lang.String) definition code for javax.naming.Context.composeName(java.lang.String, java.lang.String) , createSubcontext sample code for javax.naming.Context.createSubcontext(javax.naming.Name) definition code for javax.naming.Context.createSubcontext(javax.naming.Name) , createSubcontext sample code for javax.naming.Context.createSubcontext(java.lang.String) definition code for javax.naming.Context.createSubcontext(java.lang.String) , destroySubcontext sample code for javax.naming.Context.destroySubcontext(javax.naming.Name) definition code for javax.naming.Context.destroySubcontext(javax.naming.Name) , destroySubcontext sample code for javax.naming.Context.destroySubcontext(java.lang.String) definition code for javax.naming.Context.destroySubcontext(java.lang.String) , getEnvironment sample code for javax.naming.Context.getEnvironment() definition code for javax.naming.Context.getEnvironment() , getNameInNamespace sample code for javax.naming.Context.getNameInNamespace() definition code for javax.naming.Context.getNameInNamespace() , getNameParser sample code for javax.naming.Context.getNameParser(javax.naming.Name) definition code for javax.naming.Context.getNameParser(javax.naming.Name) , getNameParser sample code for javax.naming.Context.getNameParser(java.lang.String) definition code for javax.naming.Context.getNameParser(java.lang.String) , list sample code for javax.naming.Context.list(javax.naming.Name) definition code for javax.naming.Context.list(javax.naming.Name) , list sample code for javax.naming.Context.list(java.lang.String) definition code for javax.naming.Context.list(java.lang.String) , listBindings sample code for javax.naming.Context.listBindings(javax.naming.Name) definition code for javax.naming.Context.listBindings(javax.naming.Name) , listBindings sample code for javax.naming.Context.listBindings(java.lang.String) definition code for javax.naming.Context.listBindings(java.lang.String) , lookup sample code for javax.naming.Context.lookup(javax.naming.Name) definition code for javax.naming.Context.lookup(javax.naming.Name) , lookup sample code for javax.naming.Context.lookup(java.lang.String) definition code for javax.naming.Context.lookup(java.lang.String) , lookupLink sample code for javax.naming.Context.lookupLink(javax.naming.Name) definition code for javax.naming.Context.lookupLink(javax.naming.Name) , lookupLink sample code for javax.naming.Context.lookupLink(java.lang.String) definition code for javax.naming.Context.lookupLink(java.lang.String) , rebind sample code for javax.naming.Context.rebind(javax.naming.Name, java.lang.Object) definition code for javax.naming.Context.rebind(javax.naming.Name, java.lang.Object) , rebind sample code for javax.naming.Context.rebind(java.lang.String, java.lang.Object) definition code for javax.naming.Context.rebind(java.lang.String, java.lang.Object) , removeFromEnvironment sample code for javax.naming.Context.removeFromEnvironment(java.lang.String) definition code for javax.naming.Context.removeFromEnvironment(java.lang.String) , rename sample code for javax.naming.Context.rename(javax.naming.Name, javax.naming.Name) definition code for javax.naming.Context.rename(javax.naming.Name, javax.naming.Name) , rename sample code for javax.naming.Context.rename(java.lang.String, java.lang.String) definition code for javax.naming.Context.rename(java.lang.String, java.lang.String) , unbind sample code for javax.naming.Context.unbind(javax.naming.Name) definition code for javax.naming.Context.unbind(javax.naming.Name) , unbind sample code for javax.naming.Context.unbind(java.lang.String) definition code for javax.naming.Context.unbind(java.lang.String)
 
Methods inherited from interface javax.naming.directory.DirContext sample code for javax.naming.directory.DirContext definition code for javax.naming.directory.DirContext
bind sample code for javax.naming.directory.DirContext.bind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes) definition code for javax.naming.directory.DirContext.bind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes) , bind sample code for javax.naming.directory.DirContext.bind(java.lang.String, java.lang.Object, javax.naming.directory.Attributes) definition code for javax.naming.directory.DirContext.bind(java.lang.String, java.lang.Object, javax.naming.directory.Attributes) , createSubcontext sample code for javax.naming.directory.DirContext.createSubcontext(javax.naming.Name, javax.naming.directory.Attributes) definition code for javax.naming.directory.DirContext.createSubcontext(javax.naming.Name, javax.naming.directory.Attributes) , createSubcontext sample code for javax.naming.directory.DirContext.createSubcontext(java.lang.String, javax.naming.directory.Attributes) definition code for javax.naming.directory.DirContext.createSubcontext(java.lang.String, javax.naming.directory.Attributes) , getAttributes sample code for javax.naming.directory.DirContext.getAttributes(javax.naming.Name) definition code for javax.naming.directory.DirContext.getAttributes(javax.naming.Name) , getAttributes sample code for javax.naming.directory.DirContext.getAttributes(javax.naming.Name, java.lang.String[]) definition code for javax.naming.directory.DirContext.getAttributes(javax.naming.Name, java.lang.String[]) , getAttributes sample code for javax.naming.directory.DirContext.getAttributes(java.lang.String) definition code for javax.naming.directory.DirContext.getAttributes(java.lang.String) , getAttributes sample code for javax.naming.directory.DirContext.getAttributes(java.lang.String, java.lang.String[]) definition code for javax.naming.directory.DirContext.getAttributes(java.lang.String, java.lang.String[]) , getSchema sample code for javax.naming.directory.DirContext.getSchema(javax.naming.Name) definition code for javax.naming.directory.DirContext.getSchema(javax.naming.Name) , getSchema sample code for javax.naming.directory.DirContext.getSchema(java.lang.String) definition code for javax.naming.directory.DirContext.getSchema(java.lang.String) , getSchemaClassDefinition sample code for javax.naming.directory.DirContext.getSchemaClassDefinition(javax.naming.Name) definition code for javax.naming.directory.DirContext.getSchemaClassDefinition(javax.naming.Name) , getSchemaClassDefinition sample code for javax.naming.directory.DirContext.getSchemaClassDefinition(java.lang.String) definition code for javax.naming.directory.DirContext.getSchemaClassDefinition(java.lang.String) , modifyAttributes sample code for javax.naming.directory.DirContext.modifyAttributes(javax.naming.Name, int, javax.naming.directory.Attributes) definition code for javax.naming.directory.DirContext.modifyAttributes(javax.naming.Name, int, javax.naming.directory.Attributes) , modifyAttributes sample code for javax.naming.directory.DirContext.modifyAttributes(javax.naming.Name, javax.naming.directory.ModificationItem[]) definition code for javax.naming.directory.DirContext.modifyAttributes(javax.naming.Name, javax.naming.directory.ModificationItem[]) , modifyAttributes sample code for javax.naming.directory.DirContext.modifyAttributes(java.lang.String, int, javax.naming.directory.Attributes) definition code for javax.naming.directory.DirContext.modifyAttributes(java.lang.String, int, javax.naming.directory.Attributes) , modifyAttributes sample code for javax.naming.directory.DirContext.modifyAttributes(java.lang.String, javax.naming.directory.ModificationItem[]) definition code for javax.naming.directory.DirContext.modifyAttributes(java.lang.String, javax.naming.directory.ModificationItem[]) , rebind sample code for javax.naming.directory.DirContext.rebind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes) definition code for javax.naming.directory.DirContext.rebind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes) , rebind sample code for javax.naming.directory.DirContext.rebind(java.lang.String, java.lang.Object, javax.naming.directory.Attributes) definition code for javax.naming.directory.DirContext.rebind(java.lang.String, java.lang.Object, javax.naming.directory.Attributes) , search sample code for javax.naming.directory.DirContext.search(javax.naming.Name, javax.naming.directory.Attributes) definition code for javax.naming.directory.DirContext.search(javax.naming.Name, javax.naming.directory.Attributes) , search sample code for javax.naming.directory.DirContext.search(javax.naming.Name, javax.naming.directory.Attributes, java.lang.String[]) definition code for javax.naming.directory.DirContext.search(javax.naming.Name, javax.naming.directory.Attributes, java.lang.String[]) , search sample code for javax.naming.directory.DirContext.search(javax.naming.Name, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls) definition code for javax.naming.directory.DirContext.search(javax.naming.Name, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls) , search sample code for javax.naming.directory.DirContext.search(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls) definition code for javax.naming.directory.DirContext.search(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls) , search sample code for javax.naming.directory.DirContext.search(java.lang.String, javax.naming.directory.Attributes) definition code for javax.naming.directory.DirContext.search(java.lang.String, javax.naming.directory.Attributes) , search sample code for javax.naming.directory.DirContext.search(java.lang.String, javax.naming.directory.Attributes, java.lang.String[]) definition code for javax.naming.directory.DirContext.search(java.lang.String, javax.naming.directory.Attributes, java.lang.String[]) , search sample code for javax.naming.directory.DirContext.search(java.lang.String, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls) definition code for javax.naming.directory.DirContext.search(java.lang.String, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls) , search sample code for javax.naming.directory.DirContext.search(java.lang.String, java.lang.String, javax.naming.directory.SearchControls) definition code for javax.naming.directory.DirContext.search(java.lang.String, java.lang.String, javax.naming.directory.SearchControls)
 
Methods inherited from interface javax.naming.Context sample code for javax.naming.Context definition code for javax.naming.Context
addToEnvironment sample code for javax.naming.Context.addToEnvironment(java.lang.String, java.lang.Object) definition code for javax.naming.Context.addToEnvironment(java.lang.String, java.lang.Object) , bind sample code for javax.naming.Context.bind(javax.naming.Name, java.lang.Object) definition code for javax.naming.Context.bind(javax.naming.Name, java.lang.Object) , bind sample code for javax.naming.Context.bind(java.lang.String, java.lang.Object) definition code for javax.naming.Context.bind(java.lang.String, java.lang.Object) , close sample code for javax.naming.Context.close() definition code for javax.naming.Context.close() , composeName sample code for javax.naming.Context.composeName(javax.naming.Name, javax.naming.Name) definition code for javax.naming.Context.composeName(javax.naming.Name, javax.naming.Name) , composeName sample code for javax.naming.Context.composeName(java.lang.String, java.lang.String) definition code for javax.naming.Context.composeName(java.lang.String, java.lang.String) , createSubcontext sample code for javax.naming.Context.createSubcontext(javax.naming.Name) definition code for javax.naming.Context.createSubcontext(javax.naming.Name) , createSubcontext sample code for javax.naming.Context.createSubcontext(java.lang.String) definition code for javax.naming.Context.createSubcontext(java.lang.String) , destroySubcontext sample code for javax.naming.Context.destroySubcontext(javax.naming.Name) definition code for javax.naming.Context.destroySubcontext(javax.naming.Name) , destroySubcontext sample code for javax.naming.Context.destroySubcontext(java.lang.String) definition code for javax.naming.Context.destroySubcontext(java.lang.String) , getEnvironment sample code for javax.naming.Context.getEnvironment() definition code for javax.naming.Context.getEnvironment() , getNameInNamespace sample code for javax.naming.Context.getNameInNamespace() definition code for javax.naming.Context.getNameInNamespace() , getNameParser sample code for javax.naming.Context.getNameParser(javax.naming.Name) definition code for javax.naming.Context.getNameParser(javax.naming.Name) , getNameParser sample code for javax.naming.Context.getNameParser(java.lang.String) definition code for javax.naming.Context.getNameParser(java.lang.String) , list sample code for javax.naming.Context.list(javax.naming.Name) definition code for javax.naming.Context.list(javax.naming.Name) , list sample code for javax.naming.Context.list(java.lang.String) definition code for javax.naming.Context.list(java.lang.String) , listBindings sample code for javax.naming.Context.listBindings(javax.naming.Name) definition code for javax.naming.Context.listBindings(javax.naming.Name) , listBindings sample code for javax.naming.Context.listBindings(java.lang.String) definition code for javax.naming.Context.listBindings(java.lang.String) , lookup sample code for javax.naming.Context.lookup(javax.naming.Name) definition code for javax.naming.Context.lookup(javax.naming.Name) , lookup sample code for javax.naming.Context.lookup(java.lang.String) definition code for javax.naming.Context.lookup(java.lang.String) , lookupLink sample code for javax.naming.Context.lookupLink(javax.naming.Name) definition code for javax.naming.Context.lookupLink(javax.naming.Name) , lookupLink sample code for javax.naming.Context.lookupLink(java.lang.String) definition code for javax.naming.Context.lookupLink(java.lang.String) , rebind sample code for javax.naming.Context.rebind(javax.naming.Name, java.lang.Object) definition code for javax.naming.Context.rebind(javax.naming.Name, java.lang.Object) , rebind sample code for javax.naming.Context.rebind(java.lang.String, java.lang.Object) definition code for javax.naming.Context.rebind(java.lang.String, java.lang.Object) , removeFromEnvironment sample code for javax.naming.Context.removeFromEnvironment(java.lang.String) definition code for javax.naming.Context.removeFromEnvironment(java.lang.String) , rename sample code for javax.naming.Context.rename(javax.naming.Name, javax.naming.Name) definition code for javax.naming.Context.rename(javax.naming.Name, javax.naming.Name) , rename sample code for javax.naming.Context.rename(java.lang.String, java.lang.String) definition code for javax.naming.Context.rename(java.lang.String, java.lang.String) , unbind sample code for javax.naming.Context.unbind(javax.naming.Name) definition code for javax.naming.Context.unbind(javax.naming.Name) , unbind sample code for javax.naming.Context.unbind(java.lang.String) definition code for javax.naming.Context.unbind(java.lang.String)
 

Method Detail

addNamingListener sample code for javax.naming.event.EventDirContext.addNamingListener(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener) definition code for javax.naming.event.EventDirContext.addNamingListener(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener)

void addNamingListener(Name sample code for javax.naming.Name definition code for javax.naming.Name  target,
                       String sample code for java.lang.String definition code for java.lang.String  filter,
                       SearchControls sample code for javax.naming.directory.SearchControls definition code for javax.naming.directory.SearchControls  ctls,
                       NamingListener sample code for javax.naming.event.NamingListener definition code for javax.naming.event.NamingListener  l)
                       throws NamingException sample code for javax.naming.NamingException definition code for javax.naming.NamingException 
Adds a listener for receiving naming events fired when objects identified by the search filter filter at the object named by 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).
ctls - The possibly null search controls. If null, the default search controls are used.
l - The nonnull listener.
Throws:
NamingException sample code for javax.naming.NamingException definition code for javax.naming.NamingException - If a problem was encountered while adding the listener.
See Also:
EventContext.removeNamingListener(javax.naming.event.NamingListener) sample code for javax.naming.event.EventContext.removeNamingListener(javax.naming.event.NamingListener) definition code for javax.naming.event.EventContext.removeNamingListener(javax.naming.event.NamingListener) , DirContext.search(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls) sample code for javax.naming.directory.DirContext.search(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls) definition code for javax.naming.directory.DirContext.search(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls)

addNamingListener sample code for javax.naming.event.EventDirContext.addNamingListener(java.lang.String, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener) definition code for javax.naming.event.EventDirContext.addNamingListener(java.lang.String, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener)

void addNamingListener(String sample code for java.lang.String definition code for java.lang.String  target,
                       String sample code for java.lang.String definition code for java.lang.String  filter,
                       SearchControls sample code for javax.naming.directory.SearchControls definition code for javax.naming.directory.SearchControls  ctls,
                       NamingListener sample code for javax.naming.event.NamingListener definition code for javax.naming.event.NamingListener  l)
                       throws NamingException sample code for javax.naming.NamingException definition code for javax.naming.NamingException 
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. See the overload that accepts a Name for details of how this method behaves.

Parameters:
target - The nonnull string name of the object resolved relative to this context.
filter - The nonnull string filter (see RFC2254).
ctls - The possibly null search controls. If null, the default search controls is used.
l - The nonnull listener.
Throws:
NamingException sample code for javax.naming.NamingException definition code for javax.naming.NamingException - If a problem was encountered while adding the listener.
See Also:
EventContext.removeNamingListener(javax.naming.event.NamingListener) sample code for javax.naming.event.EventContext.removeNamingListener(javax.naming.event.NamingListener) definition code for javax.naming.event.EventContext.removeNamingListener(javax.naming.event.NamingListener) , DirContext.search(java.lang.String, java.lang.String, javax.naming.directory.SearchControls) sample code for javax.naming.directory.DirContext.search(java.lang.String, java.lang.String, javax.naming.directory.SearchControls) definition code for javax.naming.directory.DirContext.search(java.lang.String, java.lang.String, javax.naming.directory.SearchControls)

addNamingListener sample code for javax.naming.event.EventDirContext.addNamingListener(javax.naming.Name, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls, javax.naming.event.NamingListener) definition code for javax.naming.event.EventDirContext.addNamingListener(javax.naming.Name, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls, javax.naming.event.NamingListener)

void addNamingListener(Name sample code for javax.naming.Name definition code for javax.naming.Name  target,
                       String sample code for java.lang.String definition code for java.lang.String  filter,
                       Object sample code for java.lang.Object definition code for java.lang.Object [] filterArgs,
                       SearchControls sample code for javax.naming.directory.SearchControls definition code for javax.naming.directory.SearchControls  ctls,
                       NamingListener sample code for javax.naming.event.NamingListener definition code for javax.naming.event.NamingListener  l)
                       throws NamingException sample code for javax.naming.NamingException definition code for javax.naming.NamingException 
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 sample code for javax.naming.NamingException definition code for javax.naming.NamingException - If a problem was encountered while adding the listener.
See Also:
EventContext.removeNamingListener(javax.naming.event.NamingListener) sample code for javax.naming.event.EventContext.removeNamingListener(javax.naming.event.NamingListener) definition code for javax.naming.event.EventContext.removeNamingListener(javax.naming.event.NamingListener) , DirContext.search(javax.naming.Name, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls) sample code for javax.naming.directory.DirContext.search(javax.naming.Name, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls) definition code for javax.naming.directory.DirContext.search(javax.naming.Name, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls)

addNamingListener sample code for javax.naming.event.EventDirContext.addNamingListener(java.lang.String, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls, javax.naming.event.NamingListener) definition code for javax.naming.event.EventDirContext.addNamingListener(java.lang.String, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls, javax.naming.event.NamingListener)

void addNamingListener(String sample code for java.lang.String definition code for java.lang.String  target,
                       String sample code for java.lang.String definition code for java.lang.String  filter,
                       Object sample code for java.lang.Object definition code for java.lang.Object [] filterArgs,
                       SearchControls sample code for javax.naming.directory.SearchControls definition code for javax.naming.directory.SearchControls  ctls,
                       NamingListener sample code for javax.naming.event.NamingListener definition code for javax.naming.event.NamingListener  l)
                       throws NamingException sample code for javax.naming.NamingException definition code for javax.naming.NamingException 
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. See the overload that accepts a Name for details of how this method behaves.

Parameters:
target - The nonnull string 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 is used.
l - The nonnull listener.
Throws:
NamingException sample code for javax.naming.NamingException definition code for javax.naming.NamingException - If a problem was encountered while adding the listener.
See Also:
EventContext.removeNamingListener(javax.naming.event.NamingListener) sample code for javax.naming.event.EventContext.removeNamingListener(javax.naming.event.NamingListener) definition code for javax.naming.event.EventContext.removeNamingListener(javax.naming.event.NamingListener) , DirContext.search(java.lang.String, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls) sample code for javax.naming.directory.DirContext.search(java.lang.String, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls) definition code for javax.naming.directory.DirContext.search(java.lang.String, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls)