com.jdon.controller.pool
Class CommonsPoolFactory
java.lang.Object
com.jdon.controller.pool.CommonsPoolFactory
- All Implemented Interfaces:
- org.apache.commons.pool.PoolableObjectFactory
public class CommonsPoolFactory
- extends java.lang.Object
- implements org.apache.commons.pool.PoolableObjectFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommonsPoolFactory
public CommonsPoolFactory(TargetServiceFactory targetServiceFactory,
TargetMetaDef targetMetaDef,
java.lang.String maxSize)
- Parameters:
targetServiceFactory -
getPool
public CommonsPoolAdapter getPool()
- Returns:
- Returns the pool.
makeObject
public java.lang.Object makeObject()
- Specified by:
makeObject in interface org.apache.commons.pool.PoolableObjectFactory
destroyObject
public void destroyObject(java.lang.Object o)
throws java.lang.Exception
- Specified by:
destroyObject in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
java.lang.Exception
activateObject
public void activateObject(java.lang.Object o)
throws java.lang.Exception
- Specified by:
activateObject in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
java.lang.Exception
passivateObject
public void passivateObject(java.lang.Object o)
throws java.lang.Exception
- Specified by:
passivateObject in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
java.lang.Exception
validateObject
public boolean validateObject(java.lang.Object o)
- Specified by:
validateObject in interface org.apache.commons.pool.PoolableObjectFactory