org.apache.commons.pool
Class BasePoolableObjectFactory
java.lang.Object
|
+--org.apache.commons.pool.BasePoolableObjectFactory
- All Implemented Interfaces:
- PoolableObjectFactory
- public abstract class BasePoolableObjectFactory
- extends Object
- implements PoolableObjectFactory
A base implemenation of PoolableObjectFactory
.
All operations defined here are essentially no-op's.
- Version:
- $Revision: 1.7 $ $Date: 2004/02/28 12:16:21 $
- Author:
- Rodney Waldhoff
- See Also:
PoolableObjectFactory
,
BaseKeyedPoolableObjectFactory
BasePoolableObjectFactory
public BasePoolableObjectFactory()
activateObject
public void activateObject(Object obj)
throws Exception
- No-op.
- Specified by:
activateObject
in interface PoolableObjectFactory
- Following copied from interface:
org.apache.commons.pool.PoolableObjectFactory
- Parameters:
obj
- the instance to be activated
destroyObject
public void destroyObject(Object obj)
throws Exception
- No-op.
- Specified by:
destroyObject
in interface PoolableObjectFactory
- Following copied from interface:
org.apache.commons.pool.PoolableObjectFactory
- Parameters:
obj
- the instance to be destroyed
makeObject
public abstract Object makeObject()
throws Exception
- Description copied from interface:
PoolableObjectFactory
- Creates an instance that can be returned by the pool.
- Specified by:
makeObject
in interface PoolableObjectFactory
- Following copied from interface:
org.apache.commons.pool.PoolableObjectFactory
- Returns:
- an instance that can be returned by the pool.
passivateObject
public void passivateObject(Object obj)
throws Exception
- No-op.
- Specified by:
passivateObject
in interface PoolableObjectFactory
- Following copied from interface:
org.apache.commons.pool.PoolableObjectFactory
- Parameters:
obj
- the instance to be passivated
validateObject
public boolean validateObject(Object obj)
- This implementation always returns true.
- Specified by:
validateObject
in interface PoolableObjectFactory
- Returns:
- true
Copyright © 2001-2003 Apache Software Foundation. Documenation generated June 24 2004.