com.boylesoftware.cb2.util.pool
Class PooledObjectFactoryAdapter
java.lang.Object
com.boylesoftware.cb2.util.pool.PooledObjectFactoryAdapter
- All Implemented Interfaces:
- PooledObjectFactory
- Direct Known Subclasses:
- PooledThreadFactory, SimplePooledObjectFactory
- public abstract class PooledObjectFactoryAdapter
- extends java.lang.Object
- implements PooledObjectFactory
Convenience adapter for PooledObjectFactory interface. This
abstract class contains stub implementations of some of the interface
methods, so when your factory implementation extends this adapter it
does not have to implement all the methods.
- Version:
- $Id: PooledObjectFactoryAdapter.java,v 1.1 2003/07/23 22:18:08 levahim Exp $
- Author:
- Lev Himmelfarb
|
Method Summary |
void |
destroyObject(java.lang.Object o)
Interface method implementation, does nothing. |
void |
resetObject(java.lang.Object o)
Interface method implementation, does nothing. |
void |
setPool(AdaptiveObjectPool pool)
Interface method implementation, sets the internal pool
member variable. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pool
protected AdaptiveObjectPool pool
- Reference to the pool set by the
setPool method.
PooledObjectFactoryAdapter
public PooledObjectFactoryAdapter()
resetObject
public void resetObject(java.lang.Object o)
- Interface method implementation, does nothing.
- Specified by:
resetObject in interface PooledObjectFactory
- Parameters:
o - the object being returned to the pool after use.
destroyObject
public void destroyObject(java.lang.Object o)
- Interface method implementation, does nothing.
- Specified by:
destroyObject in interface PooledObjectFactory
- Parameters:
o - the object being removed from the pool.
setPool
public void setPool(AdaptiveObjectPool pool)
- Interface method implementation, sets the internal
pool
member variable.
- Specified by:
setPool in interface PooledObjectFactory
- Parameters:
pool - reference to the pool instance, which is going to
use this factory.
Copyright © 2002,2003,2004 - Boyle Software, Inc.