Modified: websites/production/turbine/content/fulcrum/fulcrum-pool/apidocs/org/apache/fulcrum/pool/DefaultPoolService.html ============================================================================== --- websites/production/turbine/content/fulcrum/fulcrum-pool/apidocs/org/apache/fulcrum/pool/DefaultPoolService.html (original) +++ websites/production/turbine/content/fulcrum/fulcrum-pool/apidocs/org/apache/fulcrum/pool/DefaultPoolService.html Tue May 21 03:41:41 2019 @@ -1,818 +1,812 @@ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<!--NewPage--> -<HTML> -<HEAD> -<!-- Generated by javadoc (build 1.5.0_19) on Fri Jul 10 17:13:41 CEST 2009 --> -<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> -<TITLE> -DefaultPoolService (Fulcrum Pool 1.0.5-SNAPSHOT API) -</TITLE> - -<META NAME="keywords" CONTENT="org.apache.fulcrum.pool.DefaultPoolService class"> - -<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> - -<SCRIPT type="text/javascript"> -function windowTitle() -{ - parent.document.title="DefaultPoolService (Fulcrum Pool 1.0.5-SNAPSHOT API)"; -} -</SCRIPT> -<NOSCRIPT> -</NOSCRIPT> - -</HEAD> - -<BODY BGCOLOR="white" onload="windowTitle();"> - - +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>DefaultPoolService (Fulcrum Pool 1.0.5 API)</title> +<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> +<script type="text/javascript" src="../../../../script.js"></script> +</head> +<body> +<script type="text/javascript"><!-- + try { + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="DefaultPoolService (Fulcrum Pool 1.0.5 API)"; + } + } + catch(err) { + } +//--> +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; +var altColor = "altColor"; +var rowColor = "rowColor"; +var tableTab = "tableTab"; +var activeTableTab = "activeTableTab"; +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> <!-- ========= START OF TOP NAVBAR ======= --> -<A NAME="navbar_top"><!-- --></A> -<A HREF="#skip-navbar_top" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_top_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../org/apache/fulcrum/pool/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/DefaultPoolService.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"> - <A HREF="../../../../org/apache/fulcrum/pool/BoundedBuffer.html" title="class in org.apache.fulcrum.pool"><B>PREV CLASS</B></A> - <A HREF="../../../../org/apache/fulcrum/pool/InitableRecyclable.html" title="interface in org.apache.fulcrum.pool"><B>NEXT CLASS</B></A></FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../index.html?org/apache/fulcrum/pool/DefaultPoolService.html" target="_top"><B>FRAMES</B></A> - <A HREF="DefaultPoolService.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- +<div class="topNav"><a name="navbar.top"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.top.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../org/apache/fulcrum/pool/package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/DefaultPoolService.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../index-all.html">Index</a></li> +<li><a href="../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../org/apache/fulcrum/pool/BoundedBuffer.html" title="class in org.apache.fulcrum.pool"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../org/apache/fulcrum/pool/InitableRecyclable.html" title="interface in org.apache.fulcrum.pool"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../index.html?org/apache/fulcrum/pool/DefaultPoolService.html" target="_top">Frames</a></li> +<li><a href="DefaultPoolService.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { - document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; } //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -<TR> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> - SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> -DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_top"></A> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li><a href="#field.summary">Field</a> | </li> +<li><a href="#constructor.summary">Constr</a> | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li><a href="#field.detail">Field</a> | </li> +<li><a href="#constructor.detail">Constr</a> | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> <!-- ========= END OF TOP NAVBAR ========= --> - -<HR> <!-- ======== START OF CLASS DATA ======== --> -<H2> -<FONT SIZE="-1"> -org.apache.fulcrum.pool</FONT> -<BR> -Class DefaultPoolService</H2> -<PRE> -<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> - <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">org.apache.avalon.framework.logger.AbstractLogEnabled - <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.fulcrum.pool.DefaultPoolService</B> -</PRE> -<DL> -<DT><B>All Implemented Interfaces:</B> <DD>org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, <A HREF="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</A></DD> -</DL> -<HR> -<DL> -<DT><PRE>public class <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.55"><B>DefaultPoolService</B></A><DT>extends org.apache.avalon.framework.logger.AbstractLogEnabled<DT>implements <A HREF="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</A>, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable</DL> -</PRE> - -<P> -The Pool Service extends the Factory Service by adding support - for pooling instantiated objects. When a new instance is - requested, the service first checks its pool if one is available. - If the the pool is empty, a new instance will be requested - from the FactoryService. - - For objects implementing the Recyclable interface, a recycle - method will be called, when they taken from the pool, and - a dispose method, when they are returned to the pool. -<P> - -<P> -<DL> -<DT><B>Version:</B></DT> - <DD>$Id: DefaultPoolService.java 670330 2008-06-22 09:37:21Z tv $</DD> -<DT><B>Author:</B></DT> - <DD><a href="mailto:[email protected]">Ilkka Priha</a>, <a href="mailto:[email protected]">Stephen McConnell</a></DD> -</DL> -<HR> - -<P> +<div class="header"> +<div class="subTitle">org.apache.fulcrum.pool</div> +<h2 title="Class DefaultPoolService" class="title">Class DefaultPoolService</h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> +<li> +<ul class="inheritance"> +<li>org.apache.avalon.framework.logger.AbstractLogEnabled</li> +<li> +<ul class="inheritance"> +<li>org.apache.fulcrum.pool.DefaultPoolService</li> +</ul> +</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Implemented Interfaces:</dt> +<dd>org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, <a href="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</a></dd> +</dl> +<hr> +<br> +<pre>public class <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.53">DefaultPoolService</a> +extends org.apache.avalon.framework.logger.AbstractLogEnabled +implements <a href="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</a>, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.configuration.Configurable</pre> +<div class="block">The Pool Service extends the Factory Service by adding support for pooling + instantiated objects. When a new instance is requested, the service first + checks its pool if one is available. If the the pool is empty, a new instance + will be requested from the FactoryService. + + For objects implementing the Recyclable interface, a recycle method will be + called, when they taken from the pool, and a dispose method, when they are + returned to the pool.</div> +<dl> +<dt><span class="simpleTagLabel">Version:</span></dt> +<dd>$Id: DefaultPoolService.java 1850691 2019-01-07 21:25:15Z painter $ + + avalon.component name="pool" lifestyle="transient" + avalon.service type="org.apache.fulcrum.pool.PoolService"</dd> +<dt><span class="simpleTagLabel">Author:</span></dt> +<dd><a href="mailto:[email protected]">Ilkka Priha</a>, <a href="mailto:[email protected]">Stephen McConnell</a></dd> +</dl> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> <!-- =========== FIELD SUMMARY =========== --> - -<A NAME="field_summary"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Field Summary</B></FONT></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE>static <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#POOL_CAPACITY">POOL_CAPACITY</A></B></CODE> - -<BR> - The property specifying the pool capacity.</TD> -</TR> -</TABLE> - <A NAME="fields_inherited_from_class_org.apache.fulcrum.pool.PoolService"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> -<TH ALIGN="left"><B>Fields inherited from interface org.apache.fulcrum.pool.<A HREF="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</A></B></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html#DEFAULT_POOL_CAPACITY">DEFAULT_POOL_CAPACITY</A>, <A HREF="../../../../org/apache/fulcrum/pool/PoolService.html#ROLE">ROLE</A></CODE></TD> -</TR> -</TABLE> - +<ul class="blockList"> +<li class="blockList"><a name="field.summary"> +<!-- --> +</a> +<h3>Field Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> +<caption><span>Fields</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Field and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#POOL_CAPACITY">POOL_CAPACITY</a></span></code> +<div class="block">The property specifying the pool capacity.</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="fields.inherited.from.class.org.apache.fulcrum.pool.PoolService"> +<!-- --> +</a> +<h3>Fields inherited from interface org.apache.fulcrum.pool.<a href="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</a></h3> +<code><a href="../../../../org/apache/fulcrum/pool/PoolService.html#DEFAULT_POOL_CAPACITY">DEFAULT_POOL_CAPACITY</a>, <a href="../../../../org/apache/fulcrum/pool/PoolService.html#ROLE">ROLE</a></code></li> +</ul> +</li> +</ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> - -<A NAME="constructor_summary"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Constructor Summary</B></FONT></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#DefaultPoolService()">DefaultPoolService</A></B>()</CODE> - -<BR> - </TD> -</TR> -</TABLE> - +<ul class="blockList"> +<li class="blockList"><a name="constructor.summary"> +<!-- --> +</a> +<h3>Constructor Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> +<caption><span>Constructors</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colOne" scope="col">Constructor and Description</th> +</tr> +<tr class="altColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#DefaultPoolService--">DefaultPoolService</a></span>()</code> </td> +</tr> +</table> +</li> +</ul> <!-- ========== METHOD SUMMARY =========== --> - -<A NAME="method_summary"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Method Summary</B></FONT></TH> -</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/apache/fulcrum/pool/DefaultPoolService.html#clearPool()">clearPool</A></B>()</CODE> - -<BR> - Clears all instances from the pool.</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/apache/fulcrum/pool/DefaultPoolService.html#clearPool(java.lang.String)">clearPool</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className)</CODE> - -<BR> - Clears instances of a named class from the pool.</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/apache/fulcrum/pool/DefaultPoolService.html#configure(org.apache.avalon.framework.configuration.Configuration)">configure</A></B>(org.apache.avalon.framework.configuration.Configuration conf)</CODE> - -<BR> - Avalon component lifecycle method</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/apache/fulcrum/pool/DefaultPoolService.html#dispose()">dispose</A></B>()</CODE> - -<BR> - Avalon component lifecycle method</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> int</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getCapacity(java.lang.String)">getCapacity</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className)</CODE> - -<BR> - Gets the capacity of the pool for a named class.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE>protected org.apache.fulcrum.factory.FactoryService</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getFactory()">getFactory</A></B>()</CODE> - -<BR> - Gets the factory service.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getInstance(java.lang.Class)">getInstance</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> clazz)</CODE> - -<BR> - Gets an instance of a specified class either from the pool - or by instatiating from the class if the pool is empty.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getInstance(java.lang.Class, java.lang.Object[], java.lang.String[])">getInstance</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> clazz, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] params, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] signature)</CODE> - -<BR> - Gets an instance of a specified class either from the pool - or by instatiating from the class if the pool is empty.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getInstance(java.lang.String)">getInstance</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className)</CODE> - -<BR> - Gets an instance of a named class either from the pool - or by calling the Factory Service if the pool is empty.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getInstance(java.lang.String, java.lang.ClassLoader)">getInstance</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">ClassLoader</A> loader)</CODE> - -<BR> - Gets an instance of a named class either from the pool - or by calling the Factory Service if the pool is empty.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getInstance(java.lang.String, java.lang.ClassLoader, java.lang.Object[], java.lang.String[])">getInstance</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">ClassLoader</A> loader, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] params, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] signature)</CODE> - -<BR> - Gets an instance of a named class either from the pool - or by calling the Factory Service if the pool is empty.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getInstance(java.lang.String, java.lang.Object[], java.lang.String[])">getInstance</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] params, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] signature)</CODE> - -<BR> - Gets an instance of a named class either from the pool - or by calling the Factory Service if the pool is empty.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> int</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getSize(java.lang.String)">getSize</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className)</CODE> - -<BR> - Gets the current size of the pool for a named class.</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/apache/fulcrum/pool/DefaultPoolService.html#initialize()">initialize</A></B>()</CODE> - -<BR> - Avalon component lifecycle method - Initializes the service by loading default class loaders - and customized object factories.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> boolean</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#isLoaderSupported(java.lang.String)">isLoaderSupported</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className)</CODE> - -<BR> - Tests if specified class loaders are supported for a named class.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> boolean</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#putInstance(java.lang.Object)">putInstance</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> instance)</CODE> - -<BR> - Puts a used object back to the pool.</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/apache/fulcrum/pool/DefaultPoolService.html#service(org.apache.avalon.framework.service.ServiceManager)">service</A></B>(org.apache.avalon.framework.service.ServiceManager manager)</CODE> - -<BR> - Avalon component lifecycle method</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/apache/fulcrum/pool/DefaultPoolService.html#setCapacity(java.lang.String, int)">setCapacity</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className, - int capacity)</CODE> - -<BR> - Sets the capacity of the pool for a named class.</TD> -</TR> -</TABLE> - <A NAME="methods_inherited_from_class_org.apache.avalon.framework.logger.AbstractLogEnabled"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> -<TH ALIGN="left"><B>Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled</B></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE>enableLogging, getLogger, setupLogger, setupLogger, setupLogger</CODE></TD> -</TR> -</TABLE> - <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> -<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/ docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> -</TR> -</TABLE> - -<P> - +<ul class="blockList"> +<li class="blockList"><a name="method.summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr id="i0" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#clearPool--">clearPool</a></span>()</code> +<div class="block">Clears all instances from the pool.</div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#clearPool-java.lang.String-">clearPool</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className)</code> +<div class="block">Clears instances of a named class from the pool.</div> +</td> +</tr> +<tr id="i2" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#configure-org.apache.avalon.framework.configuration.Configuration-">configure</a></span>(org.apache.avalon.framework.configuration.Configuration conf)</code> </td> +</tr> +<tr id="i3" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#dispose--">dispose</a></span>()</code> +<div class="block">Avalon component lifecycle method</div> +</td> +</tr> +<tr id="i4" class="altColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getCapacity-java.lang.String-">getCapacity</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className)</code> +<div class="block">Gets the capacity of the pool for a named class.</div> +</td> +</tr> +<tr id="i5" class="rowColor"> +<td class="colFirst"><code>protected org.apache.fulcrum.factory.FactoryService</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getFactory--">getFactory</a></span>()</code> +<div class="block">Gets the factory service.</div> +</td> +</tr> +<tr id="i6" class="altColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getInstance-java.lang.Class-">getInstance</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a> clazz)</code> +<div class="block">Gets an instance of a specified class either from the pool or by instatiating + from the class if the pool is empty.</div> +</td> +</tr> +<tr id="i7" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getInstance-java.lang.Class-java.lang.Object:A-java.lang.String:A-">getInstance</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a> clazz, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] params, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] signature)</code> +<div class="block">Gets an instance of a specified class either from the pool or by instatiating + from the class if the pool is empty.</div> +</td> +</tr> +<tr id="i8" class="altColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getInstance-java.lang.String-">getInstance</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className)</code> +<div class="block">Gets an instance of a named class either from the pool or by calling the + Factory Service if the pool is empty.</div> +</td> +</tr> +<tr id="i9" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getInstance-java.lang.String-java.lang.ClassLoader-">getInstance</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> loader)</code> +<div class="block">Gets an instance of a named class either from the pool or by calling the + Factory Service if the pool is empty.</div> +</td> +</tr> +<tr id="i10" class="altColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getInstance-java.lang.String-java.lang.ClassLoader-java.lang.Object:A-java.lang.String:A-">getInstance</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> loader, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] params, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] signature)</code> +<div class="block">Gets an instance of a named class either from the pool or by calling the + Factory Service if the pool is empty.</div> +</td> +</tr> +<tr id="i11" class="rowColor"> +<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getInstance-java.lang.String-java.lang.Object:A-java.lang.String:A-">getInstance</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] params, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] signature)</code> +<div class="block">Gets an instance of a named class either from the pool or by calling the + Factory Service if the pool is empty.</div> +</td> +</tr> +<tr id="i12" class="altColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#getSize-java.lang.String-">getSize</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className)</code> +<div class="block">Gets the current size of the pool for a named class.</div> +</td> +</tr> +<tr id="i13" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#initialize--">initialize</a></span>()</code> +<div class="block">Avalon component lifecycle method Initializes the service by loading default + class loaders and customized object factories.</div> +</td> +</tr> +<tr id="i14" class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#isLoaderSupported-java.lang.String-">isLoaderSupported</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className)</code> +<div class="block">Tests if specified class loaders are supported for a named class.</div> +</td> +</tr> +<tr id="i15" class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#putInstance-java.lang.Object-">putInstance</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> instance)</code> +<div class="block">Puts a used object back to the pool.</div> +</td> +</tr> +<tr id="i16" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#service-org.apache.avalon.framework.service.ServiceManager-">service</a></span>(org.apache.avalon.framework.service.ServiceManager manager)</code> +<div class="block">Avalon component lifecycle method + + <code>FactoryService</code></div> +</td> +</tr> +<tr id="i17" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/fulcrum/pool/DefaultPoolService.html#setCapacity-java.lang.String-int-">setCapacity</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className, + int capacity)</code> +<div class="block">Sets the capacity of the pool for a named class.</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.org.apache.avalon.framework.logger.AbstractLogEnabled"> +<!-- --> +</a> +<h3>Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled</h3> +<code>enableLogging, getLogger, setupLogger, setupLogger, setupLogger</code></li> +</ul> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> +<code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/7/docs/api/ja va/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> <!-- ============ FIELD DETAIL =========== --> - -<A NAME="field_detail"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> -<B>Field Detail</B></FONT></TH> -</TR> -</TABLE> - -<A NAME="POOL_CAPACITY"><!-- --></A><H3> -POOL_CAPACITY</H3> -<PRE> -public static final <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.60"><B>POOL_CAPACITY</B></A></PRE> -<DL> -<DD>The property specifying the pool capacity. -<P> -<DL> -<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.fulcrum.pool.DefaultPoolService.POOL_CAPACITY">Constant Field Values</A></DL> -</DL> - +<ul class="blockList"> +<li class="blockList"><a name="field.detail"> +<!-- --> +</a> +<h3>Field Detail</h3> +<a name="POOL_CAPACITY"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>POOL_CAPACITY</h4> +<pre>public static final <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.58">POOL_CAPACITY</a></pre> +<div class="block">The property specifying the pool capacity.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../../constant-values.html#org.apache.fulcrum.pool.DefaultPoolService.POOL_CAPACITY">Constant Field Values</a></dd> +</dl> +</li> +</ul> +</li> +</ul> <!-- ========= CONSTRUCTOR DETAIL ======== --> - -<A NAME="constructor_detail"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> -<B>Constructor Detail</B></FONT></TH> -</TR> -</TABLE> - -<A NAME="DefaultPoolService()"><!-- --></A><H3> -DefaultPoolService</H3> -<PRE> -public <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.55"><B>DefaultPoolService</B></A>()</PRE> -<DL> -</DL> - +<ul class="blockList"> +<li class="blockList"><a name="constructor.detail"> +<!-- --> +</a> +<h3>Constructor Detail</h3> +<a name="DefaultPoolService--"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>DefaultPoolService</h4> +<pre>public <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.53">DefaultPoolService</a>()</pre> +</li> +</ul> +</li> +</ul> <!-- ============ METHOD DETAIL ========== --> - -<A NAME="method_detail"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> -<B>Method Detail</B></FONT></TH> -</TR> -</TABLE> - -<A NAME="getInstance(java.lang.String)"><!-- --></A><H3> -getInstance</H3> -<PRE> -public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.298"><B>getInstance</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className) - throws <A HREF="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</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. -<P> -<DD><DL> -</DL> -</DD> -<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/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</A></CODE> - if recycling fails.</DL> -</DD> -</DL> -<HR> - -<A NAME="getInstance(java.lang.String, java.lang.ClassLoader)"><!-- --></A><H3> -getInstance</H3> -<PRE> -public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.320"><B>getInstance</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">ClassLoader</A> loader) - throws <A HREF="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</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. -<P> -<DD><DL> -</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/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</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 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.345"><B>getInstance</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] params, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] signature) - throws <A HREF="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</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. -<P> -<DD><DL> -</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/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</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 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.371"><B>getInstance</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">ClassLoader</A> loader, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] params, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] signature) - throws <A HREF="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</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. -<P> -<DD><DL> -</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/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</A></CODE> - if recycling fails.</DL> -</DD> -</DL> -<HR> - -<A NAME="isLoaderSupported(java.lang.String)"><!-- --></A><H3> -isLoaderSupported</H3> -<PRE> -public boolean <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.391"><B>isLoaderSupported</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className) - throws org.apache.fulcrum.factory.FactoryException</PRE> -<DL> -<DD>Tests if specified class loaders are supported for a named class. -<P> -<DD><DL> -</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/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</A></CODE> - if test fails. -<DD><CODE>org.apache.fulcrum.factory.FactoryException</CODE></DL> -</DD> -</DL> -<HR> - -<A NAME="getInstance(java.lang.Class)"><!-- --></A><H3> -getInstance</H3> -<PRE> -public <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.403"><B>getInstance</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> clazz) - throws <A HREF="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</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. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html#getInstance(java.lang.Class)">getInstance</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</A></CODE></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/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</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 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.427"><B>getInstance</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> clazz, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] params, - <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] signature) - throws <A HREF="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</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. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html#getInstance(java.lang.Class, java.lang.Object[], java.lang.String[])">getInstance</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</A></CODE></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/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</A></CODE> - if recycling fails.</DL> -</DD> -</DL> -<HR> - -<A NAME="putInstance(java.lang.Object)"><!-- --></A><H3> -putInstance</H3> -<PRE> -public boolean <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.449"><B>putInstance</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> 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. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html#putInstance(java.lang.Object)">putInstance</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</A></CODE></DL> -</DD> -<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="getCapacity(java.lang.String)"><!-- --></A><H3> -getCapacity</H3> -<PRE> -public int <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.479"><B>getCapacity</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className)</PRE> -<DL> -<DD>Gets the capacity of the pool for a named class. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html#getCapacity(java.lang.String)">getCapacity</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</A></CODE></DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of the class.</DL> -</DD> -</DL> -<HR> - -<A NAME="setCapacity(java.lang.String, int)"><!-- --></A><H3> -setCapacity</H3> -<PRE> -public void <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.508"><B>setCapacity</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className, - int capacity)</PRE> -<DL> -<DD>Sets the capacity of the pool for a named class. - Note that the pool will be cleared after the change. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html#setCapacity(java.lang.String, int)">setCapacity</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</A></CODE></DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of the class.<DD><CODE>capacity</CODE> - the new capacity.</DL> -</DD> -</DL> -<HR> - -<A NAME="getSize(java.lang.String)"><!-- --></A><H3> -getSize</H3> -<PRE> -public int <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.520"><B>getSize</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className)</PRE> -<DL> -<DD>Gets the current size of the pool for a named class. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html#getSize(java.lang.String)">getSize</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</A></CODE></DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of the class.</DL> -</DD> -</DL> -<HR> - -<A NAME="clearPool(java.lang.String)"><!-- --></A><H3> -clearPool</H3> -<PRE> -public void <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.530"><B>clearPool</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> className)</PRE> -<DL> -<DD>Clears instances of a named class from the pool. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html#clearPool(java.lang.String)">clearPool</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</A></CODE></DL> -</DD> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of the class.</DL> -</DD> -</DL> -<HR> - -<A NAME="clearPool()"><!-- --></A><H3> -clearPool</H3> -<PRE> -public void <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.543"><B>clearPool</B></A>()</PRE> -<DL> -<DD>Clears all instances from the pool. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html#clearPool()">clearPool</A></CODE> in interface <CODE><A HREF="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</A></CODE></DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="getFactory()"><!-- --></A><H3> -getFactory</H3> -<PRE> -protected org.apache.fulcrum.factory.FactoryService <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.566"><B>getFactory</B></A>()</PRE> -<DL> -<DD>Gets the factory service. -<P> -<DD><DL> -</DL> -</DD> -<DD><DL> - -<DT><B>Returns:</B><DD>the factory service.</DL> -</DD> -</DL> -<HR> - -<A NAME="configure(org.apache.avalon.framework.configuration.Configuration)"><!-- --></A><H3> -configure</H3> -<PRE> -public void <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.575"><B>configure</B></A>(org.apache.avalon.framework.configuration.Configuration conf)</PRE> -<DL> -<DD>Avalon component lifecycle method -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE>configure</CODE> in interface <CODE>org.apache.avalon.framework.configuration.Configurable</CODE></DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="service(org.apache.avalon.framework.service.ServiceManager)"><!-- --></A><H3> -service</H3> -<PRE> -public void <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.612"><B>service</B></A>(org.apache.avalon.framework.service.ServiceManager manager)</PRE> -<DL> -<DD>Avalon component lifecycle method -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE>service</CODE> in interface <CODE>org.apache.avalon.framework.service.Serviceable</CODE></DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> -<HR> - -<A NAME="initialize()"><!-- --></A><H3> -initialize</H3> -<PRE> -public void <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.624"><B>initialize</B></A>() - throws <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></PRE> -<DL> -<DD>Avalon component lifecycle method - Initializes the service by loading default class loaders - and customized object factories. -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE>initialize</CODE> in interface <CODE>org.apache.avalon.framework.activity.Initializable</CODE></DL> -</DD> -<DD><DL> - -<DT><B>Throws:</B> -<DD><CODE>InitializationException</CODE> - if initialization fails. -<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></CODE></DL> -</DD> -</DL> -<HR> - -<A NAME="dispose()"><!-- --></A><H3> -dispose</H3> -<PRE> -public void <A HREF="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.640"><B>dispose</B></A>()</PRE> -<DL> -<DD>Avalon component lifecycle method -<P> -<DD><DL> -<DT><B>Specified by:</B><DD><CODE>dispose</CODE> in interface <CODE>org.apache.avalon.framework.activity.Disposable</CODE></DL> -</DD> -<DD><DL> -</DL> -</DD> -</DL> +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="getInstance-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getInstance</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.81">getInstance</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className) + throws <a href="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</a></pre> +<div class="block">Gets an instance of a named class either from the pool or by calling the + Factory Service if the pool is empty.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>className</code> - the name of the class.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the instance.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</a></code> - if recycling fails.</dd> +</dl> +</li> +</ul> +<a name="getInstance-java.lang.String-java.lang.ClassLoader-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getInstance</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.104">getInstance</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> loader) + throws <a href="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</a></pre> +<div class="block">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.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>className</code> - the name of the class.</dd> +<dd><code>loader</code> - the class loader.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the instance.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</a></code> - if recycling fails.</dd> +</dl> +</li> +</ul> +<a name="getInstance-java.lang.String-java.lang.Object:A-java.lang.String:A-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getInstance</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.129">getInstance</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] params, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] signature) + throws <a href="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</a></pre> +<div class="block">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.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>className</code> - the name of the class.</dd> +<dd><code>params</code> - an array containing the parameters of the constructor.</dd> +<dd><code>signature</code> - an array containing the signature of the constructor.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the instance.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</a></code> - if recycling fails.</dd> +</dl> +</li> +</ul> +<a name="getInstance-java.lang.String-java.lang.ClassLoader-java.lang.Object:A-java.lang.String:A-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getInstance</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.156">getInstance</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> loader, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] params, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] signature) + throws <a href="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</a></pre> +<div class="block">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.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>className</code> - the name of the class.</dd> +<dd><code>loader</code> - the class loader.</dd> +<dd><code>params</code> - an array containing the parameters of the constructor.</dd> +<dd><code>signature</code> - an array containing the signature of the constructor.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the instance.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</a></code> - if recycling fails.</dd> +</dl> +</li> +</ul> +<a name="isLoaderSupported-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>isLoaderSupported</h4> +<pre>public boolean <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.177">isLoaderSupported</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className) + throws org.apache.fulcrum.factory.FactoryException</pre> +<div class="block">Tests if specified class loaders are supported for a named class.</div> +<dl> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>className</code> - the name of the class.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>true if class loaders are supported, false otherwise.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code>org.apache.fulcrum.factory.FactoryException</code> - if test fails.</dd> +</dl> +</li> +</ul> +<a name="getInstance-java.lang.Class-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getInstance</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.191">getInstance</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a> clazz) + throws <a href="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</a></pre> +<div class="block">Gets an instance of a specified class either from the pool or by instatiating + from the class if the pool is empty.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/pool/PoolService.html#getInstance-java.lang.Class-">getInstance</a></code> in interface <code><a href="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>clazz</code> - the class.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the instance.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</a></code> - if recycling fails.</dd> +</dl> +</li> +</ul> +<a name="getInstance-java.lang.Class-java.lang.Object:A-java.lang.String:A-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getInstance</h4> +<pre>public <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.214">getInstance</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a> clazz, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] params, + <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] signature) + throws <a href="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</a></pre> +<div class="block">Gets an instance of a specified class either from the pool or by instatiating + from the class if the pool is empty.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/pool/PoolService.html#getInstance-java.lang.Class-java.lang.Object:A-java.lang.String:A-">getInstance</a></code> in interface <code><a href="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>clazz</code> - the class.</dd> +<dd><code>params</code> - an array containing the parameters of the constructor.</dd> +<dd><code>signature</code> - an array containing the signature of the constructor.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the instance.</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/pool/PoolException.html" title="class in org.apache.fulcrum.pool">PoolException</a></code> - if recycling fails.</dd> +</dl> +</li> +</ul> +<a name="putInstance-java.lang.Object-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>putInstance</h4> +<pre>public boolean <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.240">putInstance</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> instance)</pre> +<div class="block">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.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/pool/PoolService.html#putInstance-java.lang.Object-">putInstance</a></code> in interface <code><a href="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>instance</code> - the object instance to recycle.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>true if the instance was accepted.</dd> +</dl> +</li> +</ul> +<a name="getCapacity-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getCapacity</h4> +<pre>public int <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.269">getCapacity</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className)</pre> +<div class="block">Gets the capacity of the pool for a named class.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/pool/PoolService.html#getCapacity-java.lang.String-">getCapacity</a></code> in interface <code><a href="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>className</code> - the name of the class.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>total capacity</dd> +</dl> +</li> +</ul> +<a name="setCapacity-java.lang.String-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>setCapacity</h4> +<pre>public void <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.298">setCapacity</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className, + int capacity)</pre> +<div class="block">Sets the capacity of the pool for a named class. Note that the pool will be + cleared after the change.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/pool/PoolService.html#setCapacity-java.lang.String-int-">setCapacity</a></code> in interface <code><a href="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>className</code> - the name of the class.</dd> +<dd><code>capacity</code> - the new capacity.</dd> +</dl> +</li> +</ul> +<a name="getSize-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getSize</h4> +<pre>public int <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.312">getSize</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className)</pre> +<div class="block">Gets the current size of the pool for a named class.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/pool/PoolService.html#getSize-java.lang.String-">getSize</a></code> in interface <code><a href="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>className</code> - the name of the class.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the size of the pool for the class</dd> +</dl> +</li> +</ul> +<a name="clearPool-java.lang.String-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>clearPool</h4> +<pre>public void <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.324">clearPool</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> className)</pre> +<div class="block">Clears instances of a named class from the pool.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/pool/PoolService.html#clearPool-java.lang.String-">clearPool</a></code> in interface <code><a href="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>className</code> - the name of the class.</dd> +</dl> +</li> +</ul> +<a name="clearPool--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>clearPool</h4> +<pre>public void <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.338">clearPool</a>()</pre> +<div class="block">Clears all instances from the pool.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../org/apache/fulcrum/pool/PoolService.html#clearPool--">clearPool</a></code> in interface <code><a href="../../../../org/apache/fulcrum/pool/PoolService.html" title="interface in org.apache.fulcrum.pool">PoolService</a></code></dd> +</dl> +</li> +</ul> +<a name="getFactory--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getFactory</h4> +<pre>protected org.apache.fulcrum.factory.FactoryService <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.363">getFactory</a>()</pre> +<div class="block">Gets the factory service.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>the factory service.</dd> +</dl> +</li> +</ul> +<a name="configure-org.apache.avalon.framework.configuration.Configuration-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>configure</h4> +<pre>public void <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.373">configure</a>(org.apache.avalon.framework.configuration.Configuration conf)</pre> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code>configure</code> in interface <code>org.apache.avalon.framework.configuration.Configurable</code></dd> +</dl> +</li> +</ul> +<a name="service-org.apache.avalon.framework.service.ServiceManager-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>service</h4> +<pre>public void <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.415">service</a>(org.apache.avalon.framework.service.ServiceManager manager)</pre> +<div class="block">Avalon component lifecycle method + + <code>FactoryService</code></div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code>service</code> in interface <code>org.apache.avalon.framework.service.Serviceable</code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>manager</code> - the service manager</dd> +</dl> +</li> +</ul> +<a name="initialize--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>initialize</h4> +<pre>public void <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.426">initialize</a>() + throws <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre> +<div class="block">Avalon component lifecycle method Initializes the service by loading default + class loaders and customized object factories.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code>initialize</code> in interface <code>org.apache.avalon.framework.activity.Initializable</code></dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code> - if initialization fails.</dd> +</dl> +</li> +</ul> +<a name="dispose--"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>dispose</h4> +<pre>public void <a href="../../../../src-html/org/apache/fulcrum/pool/DefaultPoolService.html#line.441">dispose</a>()</pre> +<div class="block">Avalon component lifecycle method</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code>dispose</code> in interface <code>org.apache.avalon.framework.activity.Disposable</code></dd> +</dl> +</li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +</div> <!-- ========= END OF CLASS DATA ========= --> -<HR> - - <!-- ======= START OF BOTTOM NAVBAR ====== --> -<A NAME="navbar_bottom"><!-- --></A> -<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR>
[... 115 lines stripped ...]
