org.huihoo.jfox.pool
Interface ObjectFactory
- All Known Implementing Classes:
- ObjectFactorySupport
- public interface ObjectFactory
- Author:
- Young Yang
getObjectClass
public java.lang.Class getObjectClass()
makeObject
public PoolableObject makeObject()
throws java.lang.Exception
- create a new poolable object
- Returns:
-
destroyObject
public void destroyObject(PoolableObject object)
throws java.lang.Exception
- destroy a poolabled object
- Parameters:
object -
validateObject
public boolean validateObject(PoolableObject object)
- Ensures that the instance is safe to be returned by the pool
- Parameters:
object - - Returns:
-