org.huihoo.jfox.pool.connection
Class ConnectionFactory

java.lang.Object
  extended byorg.huihoo.jfox.pool.ObjectFactoryImpl
      extended byorg.huihoo.jfox.pool.ProxyObjectFactory
          extended byorg.huihoo.jfox.pool.connection.ConnectionFactory
All Implemented Interfaces:
ObjectFactory

public class ConnectionFactory
extends ProxyObjectFactory


Field Summary
 
Fields inherited from class org.huihoo.jfox.pool.ProxyObjectFactory
invokerClass
 
Fields inherited from class org.huihoo.jfox.pool.ObjectFactoryImpl
classType
 
Constructor Summary
ConnectionFactory(java.lang.Class classType, java.lang.Class invokerClass)
           
 
Method Summary
 void destroyObject(PoolableObject object)
          destroy the poolConnection in pool.
 PoolableObject makeObject()
          create a new poolable object
 
Methods inherited from class org.huihoo.jfox.pool.ProxyObjectFactory
validateObject
 
Methods inherited from class org.huihoo.jfox.pool.ObjectFactoryImpl
equals, getObjectClass, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionFactory

public ConnectionFactory(java.lang.Class classType,
                         java.lang.Class invokerClass)
                  throws java.lang.Exception
Method Detail

makeObject

public PoolableObject makeObject()
                          throws java.lang.Exception
Description copied from interface: ObjectFactory
create a new poolable object

Specified by:
makeObject in interface ObjectFactory
Overrides:
makeObject in class ProxyObjectFactory
Throws:
java.lang.Exception

destroyObject

public void destroyObject(PoolableObject object)
                   throws java.lang.Exception
destroy the poolConnection in pool.

Specified by:
destroyObject in interface ObjectFactory
Overrides:
destroyObject in class ProxyObjectFactory
Parameters:
object -
Throws:
java.lang.Exception