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
| 从类 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.