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

📄 turbinefactoryservice.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DD>Gets an instance of a named class using a specified class loader. <p>Class loaders are supported only if the isLoaderSupported method returns true. Otherwise the loader parameter is ignored.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/factory/FactoryService.html#getInstance(java.lang.String, java.lang.ClassLoader)">getInstance</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/factory/FactoryService.html">FactoryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of the class.<DD><CODE>loader</CODE> - the class loader.<DT><B>Returns:</B><DD>the instance.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></CODE> - if instantiation fails.</DL></DD></DL><HR><A NAME="getInstance(java.lang.String, java.lang.Object[], java.lang.String[])"><!-- --></A><H3>getInstance</H3><PRE>public java.lang.Object <B>getInstance</B>(java.lang.String&nbsp;className,                                    java.lang.Object[]&nbsp;params,                                    java.lang.String[]&nbsp;signature)                             throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Gets an instance of a named class. Parameters for its constructor are given as an array of objects, primitive types must be wrapped with a corresponding class.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/factory/FactoryService.html#getInstance(java.lang.String, java.lang.Object[], java.lang.String[])">getInstance</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/factory/FactoryService.html">FactoryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of the class.<DD><CODE>params</CODE> - an array containing the parameters of the constructor.<DD><CODE>signature</CODE> - an array containing the signature of the constructor.<DT><B>Returns:</B><DD>the instance.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></CODE> - if instantiation fails.</DL></DD></DL><HR><A NAME="getInstance(java.lang.String, java.lang.ClassLoader, java.lang.Object[], java.lang.String[])"><!-- --></A><H3>getInstance</H3><PRE>public java.lang.Object <B>getInstance</B>(java.lang.String&nbsp;className,                                    java.lang.ClassLoader&nbsp;loader,                                    java.lang.Object[]&nbsp;params,                                    java.lang.String[]&nbsp;signature)                             throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Gets an instance of a named class using a specified class loader. Parameters for its constructor are given as an array of objects, primitive types must be wrapped with a corresponding class. <p>Class loaders are supported only if the isLoaderSupported method returns true. Otherwise the loader parameter is ignored.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/factory/FactoryService.html#getInstance(java.lang.String, java.lang.ClassLoader, java.lang.Object[], java.lang.String[])">getInstance</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/factory/FactoryService.html">FactoryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of the class.<DD><CODE>loader</CODE> - the class loader.<DD><CODE>params</CODE> - an array containing the parameters of the constructor.<DD><CODE>signature</CODE> - an array containing the signature of the constructor.<DT><B>Returns:</B><DD>the instance.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></CODE> - if instantiation fails.</DL></DD></DL><HR><A NAME="isLoaderSupported(java.lang.String)"><!-- --></A><H3>isLoaderSupported</H3><PRE>public boolean <B>isLoaderSupported</B>(java.lang.String&nbsp;className)                          throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Tests if specified class loaders are supported for a named class.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/factory/FactoryService.html#isLoaderSupported(java.lang.String)">isLoaderSupported</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/factory/FactoryService.html">FactoryService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of the class.<DT><B>Returns:</B><DD>true if class loaders are supported, false otherwise.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></CODE> - if test fails.</DL></DD></DL><HR><A NAME="getInstance(java.lang.Class)"><!-- --></A><H3>getInstance</H3><PRE>protected java.lang.Object <B>getInstance</B>(java.lang.Class&nbsp;clazz)                                throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Gets an instance of a specified class.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>clazz</CODE> - the class.<DT><B>Returns:</B><DD>the instance.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></CODE> - if instantiation fails.</DL></DD></DL><HR><A NAME="getInstance(java.lang.Class, java.lang.Object[], java.lang.String[])"><!-- --></A><H3>getInstance</H3><PRE>protected java.lang.Object <B>getInstance</B>(java.lang.Class&nbsp;clazz,                                       java.lang.Object[]&nbsp;params,                                       java.lang.String[]&nbsp;signature)                                throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Gets an instance of a specified class. Parameters for its constructor are given as an array of objects, primitive types must be wrapped with a corresponding class.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>clazz</CODE> - the class.<DD><CODE>params</CODE> - an array containing the parameters of the constructor.<DD><CODE>signature</CODE> - an array containing the signature of the constructor.<DT><B>Returns:</B><DD>the instance.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></CODE> - if instantiation fails.</DL></DD></DL><HR><A NAME="getSignature(java.lang.Class, java.lang.Object[], java.lang.String[])"><!-- --></A><H3>getSignature</H3><PRE>protected java.lang.Class[] <B>getSignature</B>(java.lang.Class&nbsp;clazz,                                         java.lang.Object[]&nbsp;params,                                         java.lang.String[]&nbsp;signature)                                  throws java.lang.ClassNotFoundException</PRE><DL><DD>Gets the signature classes for parameters of a method of a class.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>clazz</CODE> - the class.<DD><CODE>params</CODE> - an array containing the parameters of the method.<DD><CODE>signature</CODE> - an array containing the signature of the method.<DT><B>Returns:</B><DD>an array of signature classes. Note that in some cases objects in the parameter array can be switched to the context of a different class loader.<DT><B>Throws:</B><DD><CODE>java.lang.ClassNotFoundException</CODE> - if any of the classes is not found.</DL></DD></DL><HR><A NAME="switchObjectContext(java.lang.Object, java.lang.ClassLoader)"><!-- --></A><H3>switchObjectContext</H3><PRE>protected java.lang.Object <B>switchObjectContext</B>(java.lang.Object&nbsp;object,                                               java.lang.ClassLoader&nbsp;loader)</PRE><DL><DD>Switches an object into the context of a different class loader.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>object</CODE> - an object to switch.<DD><CODE>loader</CODE> - the loader of the new context.</DL></DD></DL><HR><A NAME="loadClass(java.lang.String)"><!-- --></A><H3>loadClass</H3><PRE>protected java.lang.Class <B>loadClass</B>(java.lang.String&nbsp;className)                             throws java.lang.ClassNotFoundException</PRE><DL><DD>Loads the named class using the default class loader.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of the class to load.<DT><B>Returns:</B><DD>the loaded class.<DT><B>Throws:</B><DD><CODE>java.lang.ClassNotFoundException</CODE> - if the class was not found.</DL></DD></DL><HR><A NAME="loadClass(java.lang.String, java.lang.ClassLoader)"><!-- --></A><H3>loadClass</H3><PRE>protected java.lang.Class <B>loadClass</B>(java.lang.String&nbsp;className,                                    java.lang.ClassLoader&nbsp;loader)                             throws java.lang.ClassNotFoundException</PRE><DL><DD>Loads the named class using a specified class loader.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of the class to load.<DD><CODE>loader</CODE> - the loader to use.<DT><B>Returns:</B><DD>the loaded class.<DT><B>Throws:</B><DD><CODE>java.lang.ClassNotFoundException</CODE> - if the class was not found.</DL></DD></DL><HR><A NAME="getFactory(java.lang.String)"><!-- --></A><H3>getFactory</H3><PRE>protected <A HREF="../../../../../org/apache/turbine/services/factory/Factory.html">Factory</A> <B>getFactory</B>(java.lang.String&nbsp;className)                      throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Gets a customized factory for a named class.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of the class to load.<DT><B>Returns:</B><DD>the factory or null if not specified.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></CODE> - if instantiation of the factory fails.</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/TurbineFactoryService.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-all.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="TurbineFactoryService.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright &copy; 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -