|
||||||||
| 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(java.lang.Object key,
java.lang.Object obj)
No-op. |
void |
destroyObject(java.lang.Object key,
java.lang.Object obj)
No-op. |
abstract java.lang.Object |
makeObject(java.lang.Object key)
Create an instance that can be served by the pool. |
void |
passivateObject(java.lang.Object key,
java.lang.Object obj)
No-op. |
boolean |
validateObject(java.lang.Object key,
java.lang.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(java.lang.Object key,
java.lang.Object obj)
throws java.lang.Exception
activateObject in interface KeyedPoolableObjectFactorykey - the key used when selecting the objectobj - the instance to be activated
java.lang.Exception
public void destroyObject(java.lang.Object key,
java.lang.Object obj)
throws java.lang.Exception
destroyObject in interface KeyedPoolableObjectFactorykey - the key used when selecting the instanceobj - the instance to be destroyed
java.lang.Exception
public abstract java.lang.Object makeObject(java.lang.Object key)
throws java.lang.Exception
KeyedPoolableObjectFactory
makeObject in interface KeyedPoolableObjectFactorykey - the key used when constructing the object
java.lang.Exception
public void passivateObject(java.lang.Object key,
java.lang.Object obj)
throws java.lang.Exception
passivateObject in interface KeyedPoolableObjectFactorykey - the key used when selecting the objectobj - the instance to be passivated
java.lang.Exception
public boolean validateObject(java.lang.Object key,
java.lang.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 | |||||||