public class DefaultPoolableObjectFactory extends Object implements org.apache.commons.pool.PoolableObjectFactory
Provides a simple implementation of a PoolableObjectFactory that can be used with ApachePoolConfig.
| Constructor and Description |
|---|
DefaultPoolableObjectFactory(Class theClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateObject(Object o) |
void |
destroyObject(Object o) |
Object |
makeObject() |
void |
passivateObject(Object o) |
boolean |
validateObject(Object o) |
public DefaultPoolableObjectFactory(Class theClass)
public Object makeObject() throws Exception
makeObject in interface org.apache.commons.pool.PoolableObjectFactoryExceptionpublic void destroyObject(Object o) throws Exception
destroyObject in interface org.apache.commons.pool.PoolableObjectFactoryExceptionpublic boolean validateObject(Object o)
validateObject in interface org.apache.commons.pool.PoolableObjectFactorypublic final void activateObject(Object o) throws Exception
activateObject in interface org.apache.commons.pool.PoolableObjectFactoryExceptionCopyright © 2010-2016 Stardog Union. All Rights Reserved.