|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectorg.apache.commons.pool.BaseKeyedPoolableObjectFactory
A base implemenation of KeyedPoolableObjectFactory.
All operations defined here are essentially no-op's.
KeyedPoolableObjectFactory| Constructor Summary | |
BaseKeyedPoolableObjectFactory()
|
|
| Method Summary | |
void |
activateObject(Object key,
Object obj)
No-op. |
void |
destroyObject(Object key,
Object obj)
No-op. |
abstract Object |
makeObject(Object key)
Create an instance that can be served by the pool. |
void |
passivateObject(Object key,
Object obj)
No-op. |
boolean |
validateObject(Object key,
Object obj)
This implementation always returns true. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BaseKeyedPoolableObjectFactory()
| Method Detail |
public void activateObject(Object key,
Object obj)
throws Exception
activateObject in interface KeyedPoolableObjectFactorykey - the key used when selecting the objectobj - the instance to be activated
Exception
public void destroyObject(Object key,
Object obj)
throws Exception
destroyObject in interface KeyedPoolableObjectFactorykey - the key used when selecting the instanceobj - the instance to be destroyed
Exception
public abstract Object makeObject(Object key)
throws Exception
KeyedPoolableObjectFactory
makeObject in interface KeyedPoolableObjectFactorykey - the key used when constructing the object
Exception
public void passivateObject(Object key,
Object obj)
throws Exception
passivateObject in interface KeyedPoolableObjectFactorykey - the key used when selecting the objectobj - the instance to be passivated
Exception
public boolean validateObject(Object key,
Object obj)
validateObject in interface KeyedPoolableObjectFactorykey - the key used when selecting the objectobj - the instance to be validated
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||