org.apache.tapestry.util.pool
Class NullPoolableAdaptor

java.lang.Object
  extended by org.apache.tapestry.util.pool.NullPoolableAdaptor
All Implemented Interfaces:
IPoolableAdaptor
Direct Known Subclasses:
StringBufferAdaptor

public class NullPoolableAdaptor
extends Object
implements IPoolableAdaptor

A default, empty implementation, for objects that have no special behavior related to being pooled.

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

Constructor Summary
NullPoolableAdaptor()
           
 
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

NullPoolableAdaptor

public NullPoolableAdaptor()
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