org.huihoo.jfox.pool
Interface ObjectFactory

All Known Implementing Classes:
ObjectFactoryImpl

public interface ObjectFactory


Method Summary
 void destroyObject(PoolableObject object)
          destroy a poolabled object
 java.lang.Class getObjectClass()
           
 PoolableObject makeObject()
          create a new poolable object
 boolean validateObject(PoolableObject object)
          Ensures that the instance is safe to be returned by the pool
 

Method Detail

getObjectClass

public java.lang.Class getObjectClass()

makeObject

public PoolableObject makeObject()
                          throws java.lang.Exception
create a new poolable object

Returns:
Throws:
java.lang.Exception

destroyObject

public void destroyObject(PoolableObject object)
                   throws java.lang.Exception
destroy a poolabled object

Parameters:
object -
Throws:
java.lang.Exception

validateObject

public boolean validateObject(PoolableObject object)
Ensures that the instance is safe to be returned by the pool

Parameters:
object -
Returns: