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