public abstract class BaseKeyedPoolableObjectFactory extends java.lang.Object implements KeyedPoolableObjectFactory
KeyedPoolableObjectFactory
.
All operations defined here are essentially no-op's.
KeyedPoolableObjectFactory
Constructor and Description |
---|
BaseKeyedPoolableObjectFactory() |
Modifier and Type | Method and Description |
---|---|
void |
activateObject(java.lang.Object key,
java.lang.Object obj)
No-op.
|
void |
destroyObject(java.lang.Object key,
java.lang.Object obj)
No-op.
|
abstract java.lang.Object |
makeObject(java.lang.Object key)
Create an instance that can be served by the pool.
|
void |
passivateObject(java.lang.Object key,
java.lang.Object obj)
No-op.
|
boolean |
validateObject(java.lang.Object key,
java.lang.Object obj)
This implementation always returns true.
|
public void activateObject(java.lang.Object key, java.lang.Object obj) throws java.lang.Exception
activateObject
in interface KeyedPoolableObjectFactory
key
- the key used when selecting the objectobj
- the instance to be activatedjava.lang.Exception
public void destroyObject(java.lang.Object key, java.lang.Object obj) throws java.lang.Exception
destroyObject
in interface KeyedPoolableObjectFactory
key
- the key used when selecting the instanceobj
- the instance to be destroyedjava.lang.Exception
public abstract java.lang.Object makeObject(java.lang.Object key) throws java.lang.Exception
KeyedPoolableObjectFactory
makeObject
in interface KeyedPoolableObjectFactory
key
- the key used when constructing the objectjava.lang.Exception
public void passivateObject(java.lang.Object key, java.lang.Object obj) throws java.lang.Exception
passivateObject
in interface KeyedPoolableObjectFactory
key
- the key used when selecting the objectobj
- the instance to be passivatedjava.lang.Exception
public boolean validateObject(java.lang.Object key, java.lang.Object obj)
validateObject
in interface KeyedPoolableObjectFactory
key
- the key used when selecting the objectobj
- the instance to be validatedCopyright © 2001-2003 Apache Software Foundation. Documenation generated October 9 2014.