Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.huihoo.jfox.pool
Interface ObjectFactory

All Known Implementing Classes:
  ObjectFactorySupport

public interface ObjectFactory

Author:
  Young Yang

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:

### 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:

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD