📄 namingcontextoperations.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:43:40 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Interface NamingContextOperations</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.omg.CosNaming</FONT><BR>Interface NamingContextOperations</H2><DL><DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../org/omg/CosNaming/NamingContext.html">NamingContext</A></DD></DL><HR><DL><DT>public interface <B>NamingContextOperations</B></DL><P>org/omg/CosNaming/NamingContextOperations.java Generated by the IDL-to-Java compiler (portable), version "3.0" from nameservice.idl Wednesday, January 26, 2000 3:34:53 PM PST<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CosNaming/NamingContextOperations.html#bind_context(org.omg.CosNaming.NameComponent[], org.omg.CosNaming.NamingContext)">bind_context</A></B>(<A HREF="../../../org/omg/CosNaming/NameComponent.html">NameComponent</A>[] n, <A HREF="../../../org/omg/CosNaming/NamingContext.html">NamingContext</A> nc)</CODE><BR> Names an object that is a naming context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/omg/CosNaming/NamingContext.html">NamingContext</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CosNaming/NamingContextOperations.html#bind_new_context(org.omg.CosNaming.NameComponent[])">bind_new_context</A></B>(<A HREF="../../../org/omg/CosNaming/NameComponent.html">NameComponent</A>[] n)</CODE><BR> This operation creates a new context and binds it to the name supplied as an argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CosNaming/NamingContextOperations.html#bind(org.omg.CosNaming.NameComponent[], org.omg.CORBA.Object)">bind</A></B>(<A HREF="../../../org/omg/CosNaming/NameComponent.html">NameComponent</A>[] n, <A HREF="../../../org/omg/CORBA/Object.html">Object</A> obj)</CODE><BR> Creates a binding of a name and an object in the naming context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CosNaming/NamingContextOperations.html#destroy()">destroy</A></B>()</CODE><BR> The destroy operation deletes a naming context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CosNaming/NamingContextOperations.html#list(int, org.omg.CosNaming.BindingListHolder, org.omg.CosNaming.BindingIteratorHolder)">list</A></B>(int how_many, <A HREF="../../../org/omg/CosNaming/BindingListHolder.html">BindingListHolder</A> bl, <A HREF="../../../org/omg/CosNaming/BindingIteratorHolder.html">BindingIteratorHolder</A> bi)</CODE><BR> The list operation allows a client to iterate through a set of bindings in a naming context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/omg/CosNaming/NamingContext.html">NamingContext</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CosNaming/NamingContextOperations.html#new_context()">new_context</A></B>()</CODE><BR> This operation returns a naming context implemented by the same naming server as the context on which the operation was invoked.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CosNaming/NamingContextOperations.html#rebind_context(org.omg.CosNaming.NameComponent[], org.omg.CosNaming.NamingContext)">rebind_context</A></B>(<A HREF="../../../org/omg/CosNaming/NameComponent.html">NameComponent</A>[] n, <A HREF="../../../org/omg/CosNaming/NamingContext.html">NamingContext</A> nc)</CODE><BR> Creates a binding of a name and a naming context in the naming context even if the name is already bound in the context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CosNaming/NamingContextOperations.html#rebind(org.omg.CosNaming.NameComponent[], org.omg.CORBA.Object)">rebind</A></B>(<A HREF="../../../org/omg/CosNaming/NameComponent.html">NameComponent</A>[] n, <A HREF="../../../org/omg/CORBA/Object.html">Object</A> obj)</CODE><BR> Creates a binding of a name and an object in the naming context even if the name is already bound in the context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/omg/CORBA/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CosNaming/NamingContextOperations.html#resolve(org.omg.CosNaming.NameComponent[])">resolve</A></B>(<A HREF="../../../org/omg/CosNaming/NameComponent.html">NameComponent</A>[] n)</CODE><BR> The resolve operation is the process of retrieving an object bound to a name in a given context.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/omg/CosNaming/NamingContextOperations.html#unbind(org.omg.CosNaming.NameComponent[])">unbind</A></B>(<A HREF="../../../org/omg/CosNaming/NameComponent.html">NameComponent</A>[] n)</CODE><BR> The unbind operation removes a name binding from a context.</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="bind(org.omg.CosNaming.NameComponent[], org.omg.CORBA.Object)"><!-- --></A><H3>bind</H3><PRE>public void <B>bind</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>, <A HREF="../../../org/omg/CosNaming/NamingContextPackage/AlreadyBound.html">AlreadyBound</A></PRE><DL><DD>Creates a binding of a name and an object in the naming context. Naming contexts that are bound using bind 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><DD><CODE>obj</CODE> - The 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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -