org.apache.commons.pool
Class MethodCallPoolableObjectFactory
java.lang.Object
org.apache.commons.pool.MethodCallPoolableObjectFactory
- All Implemented Interfaces:
- org.apache.commons.pool.PoolableObjectFactory
public class MethodCallPoolableObjectFactory
- extends Object
- implements org.apache.commons.pool.PoolableObjectFactory
A poolable object factory that tracks how methods are called
.
- Version:
- $Revision: 606064 $ $Date: 2007-12-20 19:12:02 -0500 (Thu, 20 Dec 2007) $
- Author:
- Sandy McArthur
- See Also:
MethodCall
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodCallPoolableObjectFactory
public MethodCallPoolableObjectFactory()
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)
isValid
public boolean isValid()
setValid
public void setValid(boolean valid)
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()
throws Exception
- Specified by:
makeObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
Exception
activateObject
public void activateObject(Object obj)
throws Exception
- Specified by:
activateObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
Exception
validateObject
public boolean validateObject(Object obj)
- Specified by:
validateObject
in interface org.apache.commons.pool.PoolableObjectFactory
passivateObject
public void passivateObject(Object obj)
throws Exception
- Specified by:
passivateObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
Exception
destroyObject
public void destroyObject(Object obj)
throws Exception
- Specified by:
destroyObject
in interface org.apache.commons.pool.PoolableObjectFactory
- Throws:
Exception
Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.