|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.objectpools.ObjectPoolFactory
public abstract class ObjectPoolFactory
This Class is the ancestor for factory classes that manage homogeneous object pools, which are pools of objects that are all of the same type.
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 | |
|---|---|
ObjectPoolFactory()
|
|
| Method Summary | |
|---|---|
abstract ObjectPool |
getPool()
Returns the object pool instance. |
protected static org.apache.commons.pool.impl.GenericObjectPool.Config |
getPoolConfig(ObjectPoolConfiguration objectPoolConfiguration)
Returns the pool configuration properties from objectPoolConfiguration, and instantiates org.apache.commons.pool.impl.GenericObjectPool.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 ObjectPoolFactory()
| Method Detail |
|---|
public abstract ObjectPool getPool()
throws java.lang.Exception
java.lang.Exception - if there are problems with the pool or JAXP
configurations or if there is a problem instantiating an
object pool.public abstract void resetPoolInstance()
protected static org.apache.commons.pool.impl.GenericObjectPool.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 | ||||||||