|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.pool.BasePoolableObjectFactory<T>
T - the type of objects held in this poolpublic abstract class BasePoolableObjectFactory<T>
A base implementation of PoolableObjectFactory.
All operations defined here are essentially no-op's.
PoolableObjectFactory,
BaseKeyedPoolableObjectFactory| Constructor Summary | |
|---|---|
BasePoolableObjectFactory()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasePoolableObjectFactory()
| Method Detail |
|---|
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 - ignored
Exception - should be avoided as it may be swallowed by
the pool implementation.PoolableObjectFactory.validateObject(T),
ObjectPool.invalidateObject(T)public boolean validateObject(T obj)
validateObject in interface PoolableObjectFactory<T>obj - ignored
public void activateObject(T obj)
throws Exception
activateObject in interface PoolableObjectFactory<T>obj - ignored
Exception - 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 - ignored
Exception - if there is a problem passivating obj,
this exception may be swallowed by the pool.PoolableObjectFactory.destroyObject(T)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||