org.apache.excalibur.mpool
Class PoolUtil
java.lang.Object
|
+--org.apache.excalibur.mpool.PoolUtil
- public final class PoolUtil
- extends Object
The PoolUtil class performs the reflection magic that is necessary to work
with the legacy Recyclable interface in the
Pool package.
It also works with the new Resettable interface in MPool.
- Version:
- CVS $Revision: 1.7 $ $Date: 2003/03/22 12:46:28 $
- Author:
- Berin Loritsch
Method Summary |
static Object |
recycle(Object obj)
This method will either call "reset" on Resettable objects,
or it will call "recycle" on Recyclable objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
recycle
public static Object recycle(Object obj)
- This method will either call "reset" on Resettable objects,
or it will call "recycle" on Recyclable objects.
- Parameters:
obj
- The object you want recycled.
- Returns:
- the same object
Copyright © 2002 Apache Avalon Project. All Rights Reserved.