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 served by the pool.
|
void |
passivateObject(Object obj)
No-op.
|
boolean |
validateObject(Object obj)
This implementation always returns true.
|
public abstract Object makeObject() throws Exception
activated. They will not be
activated before being served by the pool.makeObject in interface PoolableObjectFactoryException - if there is a problem creating a new instance,
this will be propagated to the code requesting an object.public void destroyObject(Object obj) throws Exception
destroyObject in interface PoolableObjectFactoryobj - ignoredException - should be avoided as it may be swallowed by
the pool implementation.PoolableObjectFactory.validateObject(java.lang.Object),
ObjectPool.invalidateObject(java.lang.Object)public boolean validateObject(Object obj)
validateObject in interface PoolableObjectFactoryobj - ignoredpublic void activateObject(Object obj) throws Exception
activateObject in interface PoolableObjectFactoryobj - ignoredException - if there is a problem activating obj,
this exception may be swallowed by the pool.PoolableObjectFactory.destroyObject(java.lang.Object)public void passivateObject(Object obj) throws Exception
passivateObject in interface PoolableObjectFactoryobj - ignoredException - if there is a problem passivating obj,
this exception may be swallowed by the pool.PoolableObjectFactory.destroyObject(java.lang.Object)Copyright © 2017. All rights reserved.