Interface IPoolObjectFactory


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

      • createObject

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

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

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

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