⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dirstatefactory.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/naming/spi/DirStateFactory.Result.html">DirStateFactory.Result</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/naming/spi/DirStateFactory.html#getStateToBind(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable, javax.naming.directory.Attributes)">getStateToBind</A></B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;obj,               <A HREF="../../../javax/naming/Name.html">Name</A>&nbsp;name,               <A HREF="../../../javax/naming/Context.html">Context</A>&nbsp;nameCtx,               <A HREF="../../../java/util/Hashtable.html">Hashtable</A>&nbsp;environment,               <A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A>&nbsp;inAttrs)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the state of an object for binding given the object and attributes to be transformed.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.naming.spi.StateFactory"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface javax.naming.spi.<A HREF="../../../javax/naming/spi/StateFactory.html">StateFactory</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/naming/spi/StateFactory.html#getStateToBind(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)">getStateToBind</A></CODE></TD></TR></TABLE>&nbsp;<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="getStateToBind(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable, javax.naming.directory.Attributes)"><!-- --></A><H3>getStateToBind</H3><PRE>public <A HREF="../../../javax/naming/spi/DirStateFactory.Result.html">DirStateFactory.Result</A> <B>getStateToBind</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;obj,                                             <A HREF="../../../javax/naming/Name.html">Name</A>&nbsp;name,                                             <A HREF="../../../javax/naming/Context.html">Context</A>&nbsp;nameCtx,                                             <A HREF="../../../java/util/Hashtable.html">Hashtable</A>&nbsp;environment,                                             <A HREF="../../../javax/naming/directory/Attributes.html">Attributes</A>&nbsp;inAttrs)                                      throws <A HREF="../../../javax/naming/NamingException.html">NamingException</A></PRE><DL><DD>Retrieves the state of an object for binding given the object and attributes to be transformed.<p> <tt>DirectoryManager.getStateToBind()</tt> successively loads in state factories. If a factory implements <tt>DirStateFactory</tt>, <tt>DirectoryManager</tt> invokes this method; otherwise, it invokes <tt>StateFactory.getStateToBind()</tt>. It does this until a factory produces a non-null answer.<p> When an exception is thrown by a factory,  the exception is passed on to the caller of <tt>DirectoryManager.getStateToBind()</tt>. The search for other factories that may produce a non-null answer is halted.  A factory should only throw an exception if it is sure that it is the only intended factory and that no other factories should be tried. If this factory cannot create an object using the arguments supplied, it should return null.  <p> The <code>name</code> and <code>nameCtx</code> parameters may optionally be used to specify the name of the object being created. See the description of "Name and Context Parameters" in <A HREF="../../../javax/naming/spi/ObjectFactory.html#getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)"><CODE>ObjectFactory.getObjectInstance()</CODE></A> for details. If a factory uses <code>nameCtx</code> it should synchronize its use against concurrent access, since context implementations are not guaranteed to be thread-safe.<p> The <tt>name</tt>, <tt>inAttrs</tt>, and <tt>environment</tt> parameters are owned by the caller. The implementation will not modify these objects or keep references to them, although it may keep references to clones or copies. The object returned by this method is owned by the caller. The implementation will not subsequently modify it. It will contain either a new <tt>Attributes</tt> object that is likewise owned by the caller, or a reference to the original <tt>inAttrs</tt> parameter.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - A possibly null object whose state is to be retrieved.<DD><CODE>name</CODE> - The name of this object relative to <code>nameCtx</code>,		or null if no name is specified.<DD><CODE>nameCtx</CODE> - The context relative to which the <code>name</code>		parameter is specified, or null if <code>name</code> is		relative to the default initial context.<DD><CODE>environment</CODE> - The possibly null environment to 		be used in the creation of the object's state.<DD><CODE>inAttrs</CODE> - The possibly null attributes to be bound with the object. 	The factory must not modify <tt>inAttrs</tt>.<DT><B>Returns:</B><DD>A <tt>Result</tt> containing the object's state for binding and the corresponding attributes to be bound; null if the object don't use this factory.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/naming/NamingException.html">NamingException</A></CODE> - If this factory encountered an exception while attempting to get the object's state, and no other factories are to be tried.<DT><B>See Also: </B><DD><A HREF="../../../javax/naming/spi/DirectoryManager.html#getStateToBind(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable, javax.naming.directory.Attributes)"><CODE>DirectoryManager.getStateToBind(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable, javax.naming.directory.Attributes)</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DirStateFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/naming/spi/DirObjectFactory.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/naming/spi/InitialContextFactory.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>  &nbsp;&nbsp;<A HREF="DirStateFactory.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<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 + -