📄 turbinepool.html
字号:
<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="TurbinePool()"><!-- --></A><H3>TurbinePool</H3><PRE>public <B>TurbinePool</B>()</PRE><DL></DL><!-- ============ 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="getInstance(java.lang.String)"><!-- --></A><H3>getInstance</H3><PRE>public static java.lang.Object <B>getInstance</B>(java.lang.String className) throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Gets an instance of a named class either from the pool or by calling the Factory Service if the pool is empty.<DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of 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 recycling fails.</DL></DD></DL><HR><A NAME="getInstance(java.lang.String, java.lang.ClassLoader)"><!-- --></A><H3>getInstance</H3><PRE>public static java.lang.Object <B>getInstance</B>(java.lang.String className, java.lang.ClassLoader loader) throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Gets an instance of a named class either from the pool or by calling the Factory Service if the pool is empty. The specified class loader will be passed to the Factory Service.<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 recycling fails.</DL></DD></DL><HR><A NAME="getInstance(java.lang.String, java.lang.Object[], java.lang.String[])"><!-- --></A><H3>getInstance</H3><PRE>public static java.lang.Object <B>getInstance</B>(java.lang.String className, java.lang.Object[] params, java.lang.String[] signature) throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Gets an instance of a named class either from the pool or by calling the Factory Service if the pool is empty. Parameters for its constructor are given as an array of objects, primitive types must be wrapped with a corresponding class.<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 recycling 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 static java.lang.Object <B>getInstance</B>(java.lang.String className, java.lang.ClassLoader loader, java.lang.Object[] params, java.lang.String[] signature) throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Gets an instance of a named class either from the pool or by calling the Factory Service if the pool is empty. Parameters for its constructor are given as an array of objects, primitive types must be wrapped with a corresponding class. The specified class loader will be passed to the Factory Service.<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 recycling fails.</DL></DD></DL><HR><A NAME="getInstance(java.lang.Class)"><!-- --></A><H3>getInstance</H3><PRE>public static java.lang.Object <B>getInstance</B>(java.lang.Class clazz) throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Gets an instance of a specified class either from the pool or by instatiating from the class if the pool is empty.<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 recycling fails.</DL></DD></DL><HR><A NAME="getInstance(java.lang.Class, java.lang.Object[], java.lang.String[])"><!-- --></A><H3>getInstance</H3><PRE>public static java.lang.Object <B>getInstance</B>(java.lang.Class clazz, java.lang.Object[] params, java.lang.String[] signature) throws <A HREF="../../../../../org/apache/turbine/util/TurbineException.html">TurbineException</A></PRE><DL><DD>Gets an instance of a specified class either from the pool or by instatiating from the class if the pool is empty.<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 recycling fails.</DL></DD></DL><HR><A NAME="putInstance(java.lang.Object)"><!-- --></A><H3>putInstance</H3><PRE>public static boolean <B>putInstance</B>(java.lang.Object instance)</PRE><DL><DD>Puts a used object back to the pool. Objects implementing the Recyclable interface can provide a recycle method to be called when they are reused and a dispose method to be called when they are returned to the pool.<DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the object instance to recycle.<DT><B>Returns:</B><DD>true if the instance was accepted.</DL></DD></DL><HR><A NAME="getService()"><!-- --></A><H3>getService</H3><PRE>protected static <A HREF="../../../../../org/apache/turbine/services/pool/PoolService.html">PoolService</A> <B>getService</B>()</PRE><DL><DD>Gets the pool service implementation.<DD><DL><DT><B>Returns:</B><DD>the pool service implementation.</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/TurbinePool.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-all.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../../../org/apache/turbine/services/pool/TurbinePoolService.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="TurbinePool.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -