|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.pool.DefaultPoolableObjectFactory
The DefaultPoolableObjectFactory provides a default implementation of the PoolableObjectFactory. This implementation is generic and thus involves only Object objects.
| Constructor Summary | |
DefaultPoolableObjectFactory()
|
|
| Method Summary | |
Object |
createObject()
Create a new object for the ObjectPool |
void |
destroyObject(Object object)
Destroy an object that can no longer needed by the ObjectPool. |
boolean |
validateObject(Object object)
Ensures that the Object is safe to be returned by the pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultPoolableObjectFactory()
| Method Detail |
public Object createObject()
throws Exception
createObject in interface PoolableObjectFactoryException - Throws an Exception if an error occurred while trying to create a new objectpublic void destroyObject(Object object)
destroyObject in interface PoolableObjectFactoryobject - The object to be destroyed.public boolean validateObject(Object object)
validateObject in interface PoolableObjectFactoryobject - The object to be validated.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||