📄 eventdircontext.html
字号:
</DD></DL><HR><A NAME="addNamingListener(java.lang.String, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener)"><!-- --></A><H3>addNamingListener</H3><PRE>public void <B>addNamingListener</B>(<A HREF="../../../java/lang/String.html">String</A> target, <A HREF="../../../java/lang/String.html">String</A> filter, <A HREF="../../../javax/naming/directory/SearchControls.html">SearchControls</A> ctls, <A HREF="../../../javax/naming/event/NamingListener.html">NamingListener</A> l) throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD>Adds a listener for receiving naming events fired when objects identified by the search filter <tt>filter</tt> at the object named by the string target name are modified. See the overload that accepts a <tt>Name</tt> for details of how this method behaves.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>target</CODE> - The nonnull string name of the object resolved relative to this context.<DD><CODE>filter</CODE> - The nonnull string filter (see RFC2254).<DD><CODE>ctls</CODE> - The possibly null search controls. If null, the default search controls is used.<DD><CODE>l</CODE> - The nonnull listener.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - If a problem was encountered while adding the listener.<DT><B>See Also: </B><DD><A HREF="../../../javax/naming/event/EventContext.html#removeNamingListener(javax.naming.event.NamingListener)"><CODE>EventContext.removeNamingListener(javax.naming.event.NamingListener)</CODE></A>, <A HREF="../../../javax/naming/directory/DirContext.html#search(java.lang.String, java.lang.String, javax.naming.directory.SearchControls)"><CODE>DirContext.search(java.lang.String, java.lang.String, javax.naming.directory.SearchControls)</CODE></A></DL></DD></DL><HR><A NAME="addNamingListener(javax.naming.Name, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls, javax.naming.event.NamingListener)"><!-- --></A><H3>addNamingListener</H3><PRE>public void <B>addNamingListener</B>(<A HREF="../../../javax/naming/Name.html">Name</A> target, <A HREF="../../../java/lang/String.html">String</A> filter, <A HREF="../../../java/lang/Object.html">Object</A>[] filterArgs, <A HREF="../../../javax/naming/directory/SearchControls.html">SearchControls</A> ctls, <A HREF="../../../javax/naming/event/NamingListener.html">NamingListener</A> l) throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD>Adds a listener for receiving naming events fired when objects identified by the search filter <tt>filter</tt> and filter arguments at the object named by the target are modified. The scope, returningObj flag, and returningAttributes flag from the search controls <tt>ctls</tt> are used to control the selection of objects that the listener is interested in, and determines what information is returned in the eventual <tt>NamingEvent</tt> object. Note that the requested information to be returned might not be present in the <tt>NamingEvent</tt> object if they are unavailable or could not be obtained by the service provider or service.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>target</CODE> - The nonnull name of the object resolved relative to this context.<DD><CODE>filter</CODE> - The nonnull string filter (see RFC2254).<DD><CODE>filterArgs</CODE> - The possibly null array of arguments for the filter.<DD><CODE>ctls</CODE> - The possibly null search controls. If null, the default search controls are used.<DD><CODE>l</CODE> - The nonnull listener.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - If a problem was encountered while adding the listener.<DT><B>See Also: </B><DD><A HREF="../../../javax/naming/event/EventContext.html#removeNamingListener(javax.naming.event.NamingListener)"><CODE>EventContext.removeNamingListener(javax.naming.event.NamingListener)</CODE></A>, <A HREF="../../../javax/naming/directory/DirContext.html#search(javax.naming.Name, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls)"><CODE>DirContext.search(javax.naming.Name, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls)</CODE></A></DL></DD></DL><HR><A NAME="addNamingListener(java.lang.String, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls, javax.naming.event.NamingListener)"><!-- --></A><H3>addNamingListener</H3><PRE>public void <B>addNamingListener</B>(<A HREF="../../../java/lang/String.html">String</A> target, <A HREF="../../../java/lang/String.html">String</A> filter, <A HREF="../../../java/lang/Object.html">Object</A>[] filterArgs, <A HREF="../../../javax/naming/directory/SearchControls.html">SearchControls</A> ctls, <A HREF="../../../javax/naming/event/NamingListener.html">NamingListener</A> l) throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD>Adds a listener for receiving naming events fired when objects identified by the search filter <tt>filter</tt> and filter arguments at the object named by the string target name are modified. See the overload that accepts a <tt>Name</tt> for details of how this method behaves.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>target</CODE> - The nonnull string name of the object resolved relative to this context.<DD><CODE>filter</CODE> - The nonnull string filter (see RFC2254).<DD><CODE>filterArgs</CODE> - The possibly null array of arguments for the filter.<DD><CODE>ctls</CODE> - The possibly null search controls. If null, the default search controls is used.<DD><CODE>l</CODE> - The nonnull listener.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - If a problem was encountered while adding the listener.<DT><B>See Also: </B><DD><A HREF="../../../javax/naming/event/EventContext.html#removeNamingListener(javax.naming.event.NamingListener)"><CODE>EventContext.removeNamingListener(javax.naming.event.NamingListener)</CODE></A>, <A HREF="../../../javax/naming/directory/DirContext.html#search(java.lang.String, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls)"><CODE>DirContext.search(java.lang.String, java.lang.String, java.lang.Object[], javax.naming.directory.SearchControls)</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/EventDirContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/naming/event/EventContext.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/naming/event/NamespaceChangeListener.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="EventDirContext.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -