com.jdon.controller.pool
类 CommonsPoolFactory

java.lang.Object
  继承者 com.jdon.controller.pool.CommonsPoolFactory
所有已实现的接口:
org.apache.commons.pool.PoolableObjectFactory

public class CommonsPoolFactory
extends Object
implements org.apache.commons.pool.PoolableObjectFactory


构造方法摘要
CommonsPoolFactory(TargetServiceFactory targetServiceFactory, String maxSize)
           
 
方法摘要
 void activateObject(Object o)
           
 void destroyObject(Object o)
           
 CommonsPoolAdapter getPool()
           
 Object makeObject()
           
 void passivateObject(Object o)
           
 void setPool(CommonsPoolAdapter pool)
           
 boolean validateObject(Object o)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

CommonsPoolFactory

public CommonsPoolFactory(TargetServiceFactory targetServiceFactory,
                          String maxSize)
参数:
targetServiceFactory -
方法详细信息

setPool

public void setPool(CommonsPoolAdapter pool)

getPool

public CommonsPoolAdapter getPool()
返回:
Returns the pool.

makeObject

public Object makeObject()
指定者:
接口 org.apache.commons.pool.PoolableObjectFactory 中的 makeObject

destroyObject

public void destroyObject(Object o)
                   throws Exception
指定者:
接口 org.apache.commons.pool.PoolableObjectFactory 中的 destroyObject
抛出:
Exception

activateObject

public void activateObject(Object o)
                    throws Exception
指定者:
接口 org.apache.commons.pool.PoolableObjectFactory 中的 activateObject
抛出:
Exception

passivateObject

public void passivateObject(Object o)
                     throws Exception
指定者:
接口 org.apache.commons.pool.PoolableObjectFactory 中的 passivateObject
抛出:
Exception

validateObject

public boolean validateObject(Object o)
指定者:
接口 org.apache.commons.pool.PoolableObjectFactory 中的 validateObject


Copyright © 2013. All Rights Reserved.