|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.apache.commons.pool.BasePoolableObjectFactory
A base implemenation of PoolableObjectFactory.
All operations defined here are essentially no-op's.
PoolableObjectFactory,
BaseKeyedPoolableObjectFactory| Constructor Summary | |
BasePoolableObjectFactory()
|
|
| Method Summary | |
void |
activateObject(Object obj)
No-op. |
void |
destroyObject(Object obj)
No-op. |
abstract Object |
makeObject()
Creates an instance that can be returned by the pool. |
void |
passivateObject(Object obj)
No-op. |
boolean |
validateObject(Object 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 Object makeObject()
throws Exception
PoolableObjectFactory
makeObject in interface PoolableObjectFactoryException
public void destroyObject(Object obj)
throws Exception
destroyObject in interface PoolableObjectFactoryobj - the instance to be destroyed
Exceptionpublic boolean validateObject(Object obj)
validateObject in interface PoolableObjectFactoryobj - the instance to be validated
public void activateObject(Object obj)
throws Exception
activateObject in interface PoolableObjectFactoryobj - the instance to be activated
Exception
public void passivateObject(Object obj)
throws Exception
passivateObject in interface PoolableObjectFactoryobj - the instance to be passivated
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||