org.apache.tapestry.util.pool
Interface IPoolableAdaptor

All Known Implementing Classes:
BSFManagerPoolableAdaptor, DefaultPoolableAdaptor, NullPoolableAdaptor, StringBufferAdaptor

public interface IPoolableAdaptor

Defines methods that define an adaptor to provide IPoolable type behavior to arbitrary objects.

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

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.
 

Method Detail

resetForPool

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.


discardFromPool

void discardFromPool(Object object)
Invoked when a pooled object is discarded from the pool.