Class DefaultPoolableObjectFactory

  • All Implemented Interfaces:
    org.apache.commons.pool.PoolableObjectFactory

    public class DefaultPoolableObjectFactory
    extends java.lang.Object
    implements org.apache.commons.pool.PoolableObjectFactory

    Provides a simple implementation of a PoolableObjectFactory that can be used with ApachePoolConfig.

    Since:
    0.6.5
    Version:
    0.6.5
    Author:
    Michael Grove
    • Constructor Detail

      • DefaultPoolableObjectFactory

        public DefaultPoolableObjectFactory​(java.lang.Class theClass)
    • Method Detail

      • makeObject

        public java.lang.Object makeObject()
                                    throws java.lang.Exception
        Specified by:
        makeObject in interface org.apache.commons.pool.PoolableObjectFactory
        Throws:
        java.lang.Exception
      • destroyObject

        public void destroyObject​(java.lang.Object o)
                           throws java.lang.Exception
        Specified by:
        destroyObject in interface org.apache.commons.pool.PoolableObjectFactory
        Throws:
        java.lang.Exception
      • validateObject

        public boolean validateObject​(java.lang.Object o)
        Specified by:
        validateObject in interface org.apache.commons.pool.PoolableObjectFactory
      • activateObject

        public final void activateObject​(java.lang.Object o)
                                  throws java.lang.Exception
        Specified by:
        activateObject in interface org.apache.commons.pool.PoolableObjectFactory
        Throws:
        java.lang.Exception
      • passivateObject

        public final void passivateObject​(java.lang.Object o)
                                   throws java.lang.Exception
        Specified by:
        passivateObject in interface org.apache.commons.pool.PoolableObjectFactory
        Throws:
        java.lang.Exception