org.scopemvc.util
Class BasicPoolableObjectFactory

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.5 $
Author:
Simon Harris

Field Summary
protected  java.lang.Class clazz
          The class to use
 
Constructor Summary
BasicPoolableObjectFactory(java.lang.Class inClazz)
          Construct a basic fool factory for the specified class.
 
Method Summary
 void activateObject(java.lang.Object object)
          Peforms whatever processing is required prior to activating a pooled object.
 java.lang.Object createObject()
          Creates and returns a poolable object.
 void destroyObject(java.lang.Object object)
          Peforms whatever processing is required prior to destruction of a pooled object.
 void passivateObject(java.lang.Object object)
          Peforms whatever processing is required prior to passivating a pooled object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

protected final java.lang.Class clazz
The class to use

Constructor Detail

BasicPoolableObjectFactory

public BasicPoolableObjectFactory(java.lang.Class inClazz)
Construct a basic fool factory for the specified class.

Parameters:
inClazz - TODO: Describe the Parameter
Method Detail

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
Parameters:
object - TODO: Describe the Parameter

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
Parameters:
object - TODO: Describe the Parameter

createObject

public java.lang.Object createObject()
Creates and returns a poolable object.

Specified by:
createObject in interface PoolableObjectFactory
Returns:
TODO: Describe the Return Value

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
Parameters:
object - TODO: Describe the Parameter


Copyright © 2000-2002 The Scope Team. All Rights Reserved.