|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.objectpools.KeyedObjectPoolFactory
public abstract class KeyedObjectPoolFactory
This Class is the ancestor for factory classes that create heterogeneous object pools, which are pools of objects of different types.
The framework uses the Apache Pool Package (org.apache.commons.pool) to:
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
The logging implementation for this class. |
| Constructor Summary | |
|---|---|
KeyedObjectPoolFactory()
|
|
| Method Summary | |
|---|---|
abstract KeyedObjectPoolConfiguration |
getKeyedObjectPoolConfiguration()
Return the pool configuration as a whole including the ObjectPoolConfiguration and the pooled object configuration(s). |
abstract KeyedObjectPool |
getPool()
Returns the object pool instance. |
protected static org.apache.commons.pool.impl.GenericKeyedObjectPool.Config |
getPoolConfig(ObjectPoolConfiguration objectPoolConfiguration)
Returns the pool configuration properties from objectPoolConfiguration, and instantiates org.apache.commons.pool.impl.GenericKeyedObjectPool.Config with those properties. |
abstract void |
resetPoolInstance()
Close the pool and reset the poolInstance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public KeyedObjectPoolFactory()
| Method Detail |
|---|
public abstract KeyedObjectPool getPool()
throws java.lang.Exception
java.lang.Exceptionpublic abstract KeyedObjectPoolConfiguration getKeyedObjectPoolConfiguration()
public abstract void resetPoolInstance()
protected static org.apache.commons.pool.impl.GenericKeyedObjectPool.Config getPoolConfig(ObjectPoolConfiguration objectPoolConfiguration)
throws java.lang.Exception
objectPoolConfiguration - The pool configuration, which contains
configuration properties for the Apache pool.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||