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.4 $ $Date: 2004/02/28 11:47:34 $
- Author:
- Avalon Development Team
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 © 2012 Apache Software Foundation. All Rights Reserved.