org.apache.commons.pool
Class TestKeyedObjectPool.FailingKeyedPoolableObjectFactory

java.lang.Object
  extended by org.apache.commons.pool.TestKeyedObjectPool.FailingKeyedPoolableObjectFactory
All Implemented Interfaces:
org.apache.commons.pool.KeyedPoolableObjectFactory
Enclosing class:
TestKeyedObjectPool

protected static class TestKeyedObjectPool.FailingKeyedPoolableObjectFactory
extends Object
implements org.apache.commons.pool.KeyedPoolableObjectFactory


Constructor Summary
TestKeyedObjectPool.FailingKeyedPoolableObjectFactory()
           
 
Method Summary
 void activateObject(Object key, Object obj)
           
 void destroyObject(Object key, Object obj)
           
 int getCurrentCount()
           
 List getMethodCalls()
           
 boolean isActivateObjectFail()
           
 boolean isDestroyObjectFail()
           
 boolean isMakeObjectFail()
           
 boolean isPassivateObjectFail()
           
 boolean isValidateObjectFail()
           
 Object makeObject(Object key)
           
 void passivateObject(Object key, Object obj)
           
 void reset()
           
 void setActivateObjectFail(boolean activateObjectFail)
           
 void setCurrentCount(int count)
           
 void setDestroyObjectFail(boolean destroyObjectFail)
           
 void setMakeObjectFail(boolean makeObjectFail)
           
 void setPassivateObjectFail(boolean passivateObjectFail)
           
 void setValidateObjectFail(boolean validateObjectFail)
           
 boolean validateObject(Object key, Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestKeyedObjectPool.FailingKeyedPoolableObjectFactory

public TestKeyedObjectPool.FailingKeyedPoolableObjectFactory()
Method Detail

reset

public void reset()

getMethodCalls

public List getMethodCalls()

getCurrentCount

public int getCurrentCount()

setCurrentCount

public void setCurrentCount(int count)

isMakeObjectFail

public boolean isMakeObjectFail()

setMakeObjectFail

public void setMakeObjectFail(boolean makeObjectFail)

isDestroyObjectFail

public boolean isDestroyObjectFail()

setDestroyObjectFail

public void setDestroyObjectFail(boolean destroyObjectFail)

isValidateObjectFail

public boolean isValidateObjectFail()

setValidateObjectFail

public void setValidateObjectFail(boolean validateObjectFail)

isActivateObjectFail

public boolean isActivateObjectFail()

setActivateObjectFail

public void setActivateObjectFail(boolean activateObjectFail)

isPassivateObjectFail

public boolean isPassivateObjectFail()

setPassivateObjectFail

public void setPassivateObjectFail(boolean passivateObjectFail)

makeObject

public Object makeObject(Object key)
                  throws Exception
Specified by:
makeObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Throws:
Exception

activateObject

public void activateObject(Object key,
                           Object obj)
                    throws Exception
Specified by:
activateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Throws:
Exception

validateObject

public boolean validateObject(Object key,
                              Object obj)
Specified by:
validateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory

passivateObject

public void passivateObject(Object key,
                            Object obj)
                     throws Exception
Specified by:
passivateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Throws:
Exception

destroyObject

public void destroyObject(Object key,
                          Object obj)
                   throws Exception
Specified by:
destroyObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Throws:
Exception


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.