1 8 package org.apache.avalon.excalibur.component; 9 10 import org.apache.avalon.framework.activity.Initializable; 11 import org.apache.avalon.excalibur.pool.ObjectFactory; 12 import org.apache.avalon.excalibur.pool.SoftResourceLimitingPool; 13 import org.apache.avalon.excalibur.pool.AbstractPool; 14 import org.apache.avalon.excalibur.pool.PoolController; 15 16 28 public class DefaultComponentPool 29 extends SoftResourceLimitingPool 30 implements Initializable 31 { 32 36 public DefaultComponentPool (ObjectFactory factory) throws Exception { 37 this(factory, 38 new DefaultComponentPoolController( 39 AbstractPool.DEFAULT_POOL_SIZE / 4), 40 AbstractPool.DEFAULT_POOL_SIZE / 4, 41 AbstractPool.DEFAULT_POOL_SIZE); 42 } 43 44 48 public DefaultComponentPool (ObjectFactory factory, 49 PoolController controller, 50 int minimumPoolSize, 51 int maximumPoolSIze) 52 throws Exception { 53 super(factory, controller, minimumPoolSize, maximumPoolSIze); 54 } 55 } 56 | Popular Tags |