java.lang.Object
org.scopemvc.util.BasicPoolableObjectFactory
- All Implemented Interfaces:
- PoolableObjectFactory
- public class BasicPoolableObjectFactory
- extends java.lang.Object
- implements PoolableObjectFactory
Creates pooleable instances of a specific class. The class to use MUST have
a default constructor.
- Version:
- $Revision: 1.3 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
private static final org.apache.commons.logging.Log LOG
clazz
protected final java.lang.Class clazz
- The class to use
BasicPoolableObjectFactory
public BasicPoolableObjectFactory(java.lang.Class inClazz)
- Construct a basic fool factory for the specified class.
activateObject
public void activateObject(java.lang.Object object)
- Peforms whatever processing is required prior to activating a pooled
object.
- Specified by:
activateObject in interface PoolableObjectFactory
passivateObject
public void passivateObject(java.lang.Object object)
- Peforms whatever processing is required prior to passivating a pooled
object.
- Specified by:
passivateObject in interface PoolableObjectFactory
createObject
public java.lang.Object createObject()
- Creates and returns a poolable object.
- Specified by:
createObject in interface PoolableObjectFactory
destroyObject
public void destroyObject(java.lang.Object object)
- Peforms whatever processing is required prior to destruction of a
pooled object.
- Specified by:
destroyObject in interface PoolableObjectFactory