org.apache.tapestry.util.pool
Class DefaultPoolableAdaptor

java.lang.Object
  extended by org.apache.tapestry.util.pool.DefaultPoolableAdaptor
All Implemented Interfaces:
IPoolableAdaptor

public class DefaultPoolableAdaptor
extends Object
implements IPoolableAdaptor

Implementation for objects that implement the IPoolable interface.

Since:
3.0
Version:
$Id: DefaultPoolableAdaptor.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Constructor Summary
DefaultPoolableAdaptor()
           
 
Method Summary
 void discardFromPool(Object object)
          Invoked when a pooled object is discarded from the pool.
 void resetForPool(Object object)
          Invoked just as an object is returned to the pool; this allows it to reset any state back to newly initialized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPoolableAdaptor

public DefaultPoolableAdaptor()
Method Detail

resetForPool

public void resetForPool(Object object)
Description copied from interface: IPoolableAdaptor
Invoked just as an object is returned to the pool; this allows it to reset any state back to newly initialized.

Specified by:
resetForPool in interface IPoolableAdaptor

discardFromPool

public void discardFromPool(Object object)
Description copied from interface: IPoolableAdaptor
Invoked when a pooled object is discarded from the pool.

Specified by:
discardFromPool in interface IPoolableAdaptor