| org.apache.commons.pool.KeyedPoolableObjectFactory
All known Subclasses: org.apache.commons.pool.BaseKeyedPoolableObjectFactory,
activateObject | void activateObject(Object key, Object obj) throws Exception(Code) | | Reinitialize an instance to be returned by the pool.
Parameters: key - the key used when selecting the object Parameters: obj - the instance to be activated |
destroyObject | void destroyObject(Object key, Object obj) throws Exception(Code) | | Destroy an instance no longer needed by the pool.
Parameters: key - the key used when selecting the instance Parameters: obj - the instance to be destroyed |
makeObject | Object makeObject(Object key) throws Exception(Code) | | Create an instance that can be served by the pool.
Parameters: key - the key used when constructing the object an instance that can be served by the pool. |
passivateObject | void passivateObject(Object key, Object obj) throws Exception(Code) | | Uninitialize an instance to be returned to the pool.
Parameters: key - the key used when selecting the object Parameters: obj - the instance to be passivated |
validateObject | boolean validateObject(Object key, Object obj)(Code) | | Ensures that the instance is safe to be returned by the pool.
Returns false if this instance should be destroyed.
Parameters: key - the key used when selecting the object Parameters: obj - the instance to be validated false if this obj is not valid and shouldbe dropped from the pool, true otherwise. |
|
|