Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.dbcp
Class TestAbandonedObjectPool.SimpleFactory  view TestAbandonedObjectPool.SimpleFactory download TestAbandonedObjectPool.SimpleFactory.java

java.lang.Object
  extended byorg.apache.commons.dbcp.TestAbandonedObjectPool.SimpleFactory
All Implemented Interfaces:
org.apache.commons.pool.PoolableObjectFactory
Enclosing class:
TestAbandonedObjectPool

class TestAbandonedObjectPool.SimpleFactory
extends java.lang.Object
implements org.apache.commons.pool.PoolableObjectFactory


Constructor Summary
(package private) TestAbandonedObjectPool.SimpleFactory()
           
 
Method Summary
 void activateObject(java.lang.Object obj)
          Reinitialize an instance to be returned by the pool.
 void destroyObject(java.lang.Object obj)
          Destroys an instance no longer needed by the pool.
 java.lang.Object makeObject()
          Creates an instance that can be returned by the pool.
 void passivateObject(java.lang.Object obj)
          Uninitialize an instance to be returned to the pool.
 boolean validateObject(java.lang.Object obj)
          Ensures that the instance is safe to be returned by the pool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestAbandonedObjectPool.SimpleFactory

TestAbandonedObjectPool.SimpleFactory()
Method Detail

makeObject

public java.lang.Object makeObject()
Description copied from interface: org.apache.commons.pool.PoolableObjectFactory
Creates an instance that can be returned by the pool.

Specified by:
makeObject in interface org.apache.commons.pool.PoolableObjectFactory

validateObject

public boolean validateObject(java.lang.Object obj)
Description copied from interface: org.apache.commons.pool.PoolableObjectFactory
Ensures that the instance is safe to be returned by the pool. Returns false if this object should be destroyed.

Specified by:
validateObject in interface org.apache.commons.pool.PoolableObjectFactory

activateObject

public void activateObject(java.lang.Object obj)
Description copied from interface: org.apache.commons.pool.PoolableObjectFactory
Reinitialize an instance to be returned by the pool.

Specified by:
activateObject in interface org.apache.commons.pool.PoolableObjectFactory

passivateObject

public void passivateObject(java.lang.Object obj)
Description copied from interface: org.apache.commons.pool.PoolableObjectFactory
Uninitialize an instance to be returned to the pool.

Specified by:
passivateObject in interface org.apache.commons.pool.PoolableObjectFactory

destroyObject

public void destroyObject(java.lang.Object obj)
Description copied from interface: org.apache.commons.pool.PoolableObjectFactory
Destroys an instance no longer needed by the pool.

Specified by:
destroyObject in interface org.apache.commons.pool.PoolableObjectFactory