Interface IPoolObjectFactory


public interface IPoolObjectFactory
A factory for the lifecycle management of objects in a generic pool implementation.
  • Method Details

    • createObject

      Object createObject() throws Exception
      Create the new object.
      Returns:
      The new object
      Throws:
      Exception
    • destroyObject

      void destroyObject(Object obj) throws Exception
      Destroy the object.
      Parameters:
      obj - The object to be destroyed.
      Throws:
      Exception
    • activateObject

      void activateObject(Object obj) throws Exception
      Activate the object before checkout from pool.
      Parameters:
      obj - The object to be activated.
      Throws:
      Exception
    • deactivateObject

      void deactivateObject(Object obj) throws Exception
      Deactivate object before checkin to pool.
      Parameters:
      obj - The object to be deeactivated.
      Throws:
      Exception