org.apache.commons.pool
public abstract class BasePoolableObjectFactory extends Object implements PoolableObjectFactory
PoolableObjectFactory
.
All operations defined here are essentially no-op's.
PoolableObjectFactory
,
BaseKeyedPoolableObjectFactory
Constructor and Description |
---|
BasePoolableObjectFactory() |
Modifier and Type | Method and Description |
---|---|
void |
activateObject(Object obj)
No-op.
|
void |
destroyObject(Object obj)
No-op.
|
abstract Object |
makeObject()
Creates an instance that can be returned by the pool.
|
void |
passivateObject(Object obj)
No-op.
|
boolean |
validateObject(Object obj)
This implementation always returns true.
|
public void activateObject(Object obj) throws Exception
activateObject
in interface PoolableObjectFactory
obj
- the instance to be activatedException
public void destroyObject(Object obj) throws Exception
destroyObject
in interface PoolableObjectFactory
obj
- the instance to be destroyedException
public abstract Object makeObject() throws Exception
PoolableObjectFactory
makeObject
in interface PoolableObjectFactory
Exception
public void passivateObject(Object obj) throws Exception
passivateObject
in interface PoolableObjectFactory
obj
- the instance to be passivatedException
public boolean validateObject(Object obj)
validateObject
in interface PoolableObjectFactory
obj
- the instance to be validatedCopyright © 2001-2003 Apache Software Foundation. Documenation generated June 28 2015.