T - the type of objects held in this poolpublic abstract class BasePoolableObjectFactory<T> extends Object implements PoolableObjectFactory<T>
PoolableObjectFactory.
 All operations defined here are essentially no-op's.
PoolableObjectFactory, 
BaseKeyedPoolableObjectFactory| Constructor and Description | 
|---|
| BasePoolableObjectFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | activateObject(T obj)No-op. | 
| void | destroyObject(T obj)No-op. | 
| abstract T | makeObject()Creates an instance that can be served by the pool. | 
| void | passivateObject(T obj)No-op. | 
| boolean | validateObject(T obj)This implementation always returns  true. | 
public abstract T makeObject() throws Exception
activated. They will not be
 activated before being served by the pool.makeObject in interface PoolableObjectFactory<T>Exception - if there is a problem creating a new instance,
    this will be propagated to the code requesting an object.public void destroyObject(T obj) throws Exception
destroyObject in interface PoolableObjectFactory<T>obj - ignoredException - should be avoided as it may be swallowed by
    the pool implementation.PoolableObjectFactory.validateObject(T), 
ObjectPool.invalidateObject(T)public boolean validateObject(T obj)
true.validateObject in interface PoolableObjectFactory<T>obj - ignoredtruepublic void activateObject(T obj) throws Exception
activateObject in interface PoolableObjectFactory<T>obj - ignoredException - if there is a problem activating obj,
    this exception may be swallowed by the pool.PoolableObjectFactory.destroyObject(T)public void passivateObject(T obj) throws Exception
passivateObject in interface PoolableObjectFactory<T>obj - ignoredException - if there is a problem passivating obj,
    this exception may be swallowed by the pool.PoolableObjectFactory.destroyObject(T)Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.