📄 namingcontextoperations.html
字号:
continue the operation at the returned naming context.<p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/InvalidName.html">InvalidName</A></CODE> - Indicates that the name is invalid. <p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/AlreadyBound.html">AlreadyBound</A></CODE> - Indicates an object is already bound to the specified name.<p></DL></DD></DL><HR><A NAME="bind_context(org.omg.CosNaming.NameComponent[], org.omg.CosNaming.NamingContext)"><!-- --></A><H3>bind_context</H3><PRE>public void <B>bind_context</B>(<A HREF="../../../org/omg/CosNaming/NameComponent.html">NameComponent</A>[] n, <A HREF="../../../org/omg/CosNaming/NamingContext.html">NamingContext</A> nc) throws <A HREF="../../../org/omg/CosNaming/NamingContextPackage/NotFound.html">NotFound</A>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/CannotProceed.html">CannotProceed</A>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/InvalidName.html">InvalidName</A>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/AlreadyBound.html">AlreadyBound</A></PRE><DL><DD>Names an object that is a naming context. Naming contexts that are bound using bind_context() participate in name resolution when compound names are passed to be resolved.<DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - Name of the object <p><DD><CODE>nc</CODE> - NamingContect object to bind with the given name <p><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/NotFound.html">NotFound</A></CODE> - Indicates the name does not identify a binding.<p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/CannotProceed.html">CannotProceed</A></CODE> - Indicates that the implementation has given up for some reason. The client, however, may be able to continue the operation at the returned naming context.<p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/InvalidName.html">InvalidName</A></CODE> - Indicates that the name is invalid. <p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/AlreadyBound.html">AlreadyBound</A></CODE> - Indicates an object is already bound to the specified name.<p></DL></DD></DL><HR><A NAME="rebind(org.omg.CosNaming.NameComponent[], org.omg.CORBA.Object)"><!-- --></A><H3>rebind</H3><PRE>public void <B>rebind</B>(<A HREF="../../../org/omg/CosNaming/NameComponent.html">NameComponent</A>[] n, <A HREF="../../../org/omg/CORBA/Object.html">Object</A> obj) throws <A HREF="../../../org/omg/CosNaming/NamingContextPackage/NotFound.html">NotFound</A>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/CannotProceed.html">CannotProceed</A>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/InvalidName.html">InvalidName</A></PRE><DL><DD>Creates a binding of a name and an object in the naming context even if the name is already bound in the context. Naming contexts that are bound using rebind do not participate in name resolution when compound names are passed to be resolved.<DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - Name of the object <p><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/NotFound.html">NotFound</A></CODE> - Indicates the name does not identify a binding.<p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/CannotProceed.html">CannotProceed</A></CODE> - Indicates that the implementation has given up for some reason. The client, however, may be able to continue the operation at the returned naming context.<p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/InvalidName.html">InvalidName</A></CODE> - Indicates that the name is invalid. <p></DL></DD></DL><HR><A NAME="rebind_context(org.omg.CosNaming.NameComponent[], org.omg.CosNaming.NamingContext)"><!-- --></A><H3>rebind_context</H3><PRE>public void <B>rebind_context</B>(<A HREF="../../../org/omg/CosNaming/NameComponent.html">NameComponent</A>[] n, <A HREF="../../../org/omg/CosNaming/NamingContext.html">NamingContext</A> nc) throws <A HREF="../../../org/omg/CosNaming/NamingContextPackage/NotFound.html">NotFound</A>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/CannotProceed.html">CannotProceed</A>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/InvalidName.html">InvalidName</A></PRE><DL><DD>Creates a binding of a name and a naming context in the naming context even if the name is already bound in the context. Naming contexts that are bound using rebind_context() participate in name resolution when compound names are passed to be resolved.<DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - Name of the object <p><DD><CODE>nc</CODE> - NamingContect object to rebind with the given name <p><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/NotFound.html">NotFound</A></CODE> - Indicates the name does not identify a binding.<p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/CannotProceed.html">CannotProceed</A></CODE> - Indicates that the implementation has given up for some reason. The client, however, may be able to continue the operation at the returned naming context.<p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/InvalidName.html">InvalidName</A></CODE> - Indicates that the name is invalid. <p></DL></DD></DL><HR><A NAME="resolve(org.omg.CosNaming.NameComponent[])"><!-- --></A><H3>resolve</H3><PRE>public <A HREF="../../../org/omg/CORBA/Object.html">Object</A> <B>resolve</B>(<A HREF="../../../org/omg/CosNaming/NameComponent.html">NameComponent</A>[] n) throws <A HREF="../../../org/omg/CosNaming/NamingContextPackage/NotFound.html">NotFound</A>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/CannotProceed.html">CannotProceed</A>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/InvalidName.html">InvalidName</A></PRE><DL><DD>The resolve operation is the process of retrieving an object bound to a name in a given context. The given name must exactly match the bound name. The naming service does not return the type of the object. Clients are responsible for "narrowing" the object to the appropriate type. That is, clients typically cast the returned object from Object to a more specialized interface.<DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - Name of the object <p><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/NotFound.html">NotFound</A></CODE> - Indicates the name does not identify a binding.<p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/CannotProceed.html">CannotProceed</A></CODE> - Indicates that the implementation has given up for some reason. The client, however, may be able to continue the operation at the returned naming context.<p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/InvalidName.html">InvalidName</A></CODE> - Indicates that the name is invalid. <p></DL></DD></DL><HR><A NAME="unbind(org.omg.CosNaming.NameComponent[])"><!-- --></A><H3>unbind</H3><PRE>public void <B>unbind</B>(<A HREF="../../../org/omg/CosNaming/NameComponent.html">NameComponent</A>[] n) throws <A HREF="../../../org/omg/CosNaming/NamingContextPackage/NotFound.html">NotFound</A>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/CannotProceed.html">CannotProceed</A>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/InvalidName.html">InvalidName</A></PRE><DL><DD>The unbind operation removes a name binding from a context.<DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - Name of the object <p><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/NotFound.html">NotFound</A></CODE> - Indicates the name does not identify a binding.<p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/CannotProceed.html">CannotProceed</A></CODE> - Indicates that the implementation has given up for some reason. The client, however, may be able to continue the operation at the returned naming context.<p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/InvalidName.html">InvalidName</A></CODE> - Indicates that the name is invalid. <p></DL></DD></DL><HR><A NAME="list(int, org.omg.CosNaming.BindingListHolder, org.omg.CosNaming.BindingIteratorHolder)"><!-- --></A><H3>list</H3><PRE>public void <B>list</B>(int how_many, <A HREF="../../../org/omg/CosNaming/BindingListHolder.html">BindingListHolder</A> bl, <A HREF="../../../org/omg/CosNaming/BindingIteratorHolder.html">BindingIteratorHolder</A> bi)</PRE><DL><DD>The list operation allows a client to iterate through a set of bindings in a naming context. <p> The list operation returns at most the requested number of bindings in BindingList bl. <ul> <li>If the naming context contains additional bindings, the list operation returns a BindingIterator with the additional bindings. <li>If the naming context does not contain additional bindings, the binding iterator is a nil object reference. </ul><DD><DL><DT><B>Parameters:</B><DD><CODE>how_many</CODE> - the maximum number of bindings to return <p><DD><CODE>bl</CODE> - the returned list of bindings <p><DD><CODE>bi</CODE> - the returned binding iterator <p></DL></DD></DL><HR><A NAME="new_context()"><!-- --></A><H3>new_context</H3><PRE>public <A HREF="../../../org/omg/CosNaming/NamingContext.html">NamingContext</A> <B>new_context</B>()</PRE><DL><DD>This operation returns a naming context implemented by the same naming server as the context on which the operation was invoked. The new context is not bound to any name.</DL><HR><A NAME="bind_new_context(org.omg.CosNaming.NameComponent[])"><!-- --></A><H3>bind_new_context</H3><PRE>public <A HREF="../../../org/omg/CosNaming/NamingContext.html">NamingContext</A> <B>bind_new_context</B>(<A HREF="../../../org/omg/CosNaming/NameComponent.html">NameComponent</A>[] n) throws <A HREF="../../../org/omg/CosNaming/NamingContextPackage/NotFound.html">NotFound</A>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/AlreadyBound.html">AlreadyBound</A>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/CannotProceed.html">CannotProceed</A>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/InvalidName.html">InvalidName</A></PRE><DL><DD>This operation creates a new context and binds it to the name supplied as an argument. The newly-created context is implemented by the same naming server as the context in which it was bound (that is, the naming server that implements the context denoted by the name argument excluding the last component).<DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - Name of the object <p><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/NotFound.html">NotFound</A></CODE> - Indicates the name does not identify a binding.<p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/AlreadyBound.html">AlreadyBound</A></CODE> - Indicates an object is already bound to the specified name.<p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/CannotProceed.html">CannotProceed</A></CODE> - Indicates that the implementation has given up for some reason. The client, however, may be able to continue the operation at the returned naming context.<p><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/InvalidName.html">InvalidName</A></CODE> - Indicates that the name is invalid. <p></DL></DD></DL><HR><A NAME="destroy()"><!-- --></A><H3>destroy</H3><PRE>public void <B>destroy</B>() throws <A HREF="../../../org/omg/CosNaming/NamingContextPackage/NotEmpty.html">NotEmpty</A></PRE><DL><DD>The destroy operation deletes a naming context. If the naming context contains bindings, the NotEmpty exception is raised.<DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../org/omg/CosNaming/NamingContextPackage/NotEmpty.html">NotEmpty</A></CODE> - Indicates that the Naming Context contains bindings.</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/NamingContextOperations.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="../../../org/omg/CosNaming/NamingContext.html"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="NamingContextOperations.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 + -