Java Doc for EventDirContext.java in  » 6.0-JDK-Core » naming » javax » naming » event » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » naming » javax.naming.event 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.naming.event.EventDirContext

EventDirContext
public interface EventDirContext extends EventContext,DirContext(Code)
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.
author:
   Rosanna Lee
author:
   Scott Seligman
version:
   1.8 03/12/19
since:
   1.3





Method Summary
 voidaddNamingListener(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.

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.

 voidaddNamingListener(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. 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.
Parameters:
  filter - The nonnull string filter (see RFC2254).
Parameters:
  ctls - The possibly null search controls.
 voidaddNamingListener(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. 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.
 voidaddNamingListener(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. 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.
Parameters:
  filter - The nonnull string filter (see RFC2254).
Parameters:
  filterArgs - The possibly null array of arguments for the filter.
Parameters:
  ctls - The possibly null search controls.



Method Detail
addNamingListener
void addNamingListener(Name target, String filter, SearchControls ctls, NamingListener l) throws NamingException(Code)
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.
Parameters:
  filter - The nonnull string filter (see RFC2254).
Parameters:
  ctls - The possibly null search controls. If null, the defaultsearch controls are used.
Parameters:
  l - The nonnull listener.
exception:
  NamingException - If a problem was encountered whileadding the listener.
See Also:   EventContext.removeNamingListener
See Also:   javax.naming.directory.DirContext.search(javax.naming.Namejava.lang.Stringjavax.naming.directory.SearchControls)




addNamingListener
void addNamingListener(String target, String filter, SearchControls ctls, NamingListener l) throws NamingException(Code)
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.
Parameters:
  filter - The nonnull string filter (see RFC2254).
Parameters:
  ctls - The possibly null search controls. If null, the defaultsearch controls is used.
Parameters:
  l - The nonnull listener.
exception:
  NamingException - If a problem was encountered whileadding the listener.
See Also:   EventContext.removeNamingListener
See Also:   javax.naming.directory.DirContext.search(java.lang.Stringjava.lang.Stringjavax.naming.directory.SearchControls)



addNamingListener
void addNamingListener(Name target, String filter, Object[] filterArgs, SearchControls ctls, NamingListener l) throws NamingException(Code)
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.
Parameters:
  filter - The nonnull string filter (see RFC2254).
Parameters:
  filterArgs - The possibly null array of arguments for the filter.
Parameters:
  ctls - The possibly null search controls. If null, the defaultsearch controls are used.
Parameters:
  l - The nonnull listener.
exception:
  NamingException - If a problem was encountered whileadding the listener.
See Also:   EventContext.removeNamingListener
See Also:   javax.naming.directory.DirContext.search(javax.naming.Namejava.lang.Stringjava.lang.Object[]javax.naming.directory.SearchControls)



addNamingListener
void addNamingListener(String target, String filter, Object[] filterArgs, SearchControls ctls, NamingListener l) throws NamingException(Code)
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.
Parameters:
  filter - The nonnull string filter (see RFC2254).
Parameters:
  filterArgs - The possibly null array of arguments for the filter.
Parameters:
  ctls - The possibly null search controls. If null, the defaultsearch controls is used.
Parameters:
  l - The nonnull listener.
exception:
  NamingException - If a problem was encountered whileadding the listener.
See Also:   EventContext.removeNamingListener
See Also:   javax.naming.directory.DirContext.search(java.lang.Stringjava.lang.Stringjava.lang.Object[]javax.naming.directory.SearchControls)
See Also:   



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.