org.apache.tapestry.util.pool
Interface IPoolable

All Known Implementing Classes:
AbstractSpecificationResolver, ComponentSpecificationResolver, Default, PageSpecificationResolver

public interface IPoolable

Marks an object as being aware that is to be stored into a Pool. This gives the object a last chance to reset any state.

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

Method Summary
 void discardFromPool()
          Invoked just as a Pool discards an object (for lack of use).
 void resetForPool()
          Invoked by a Pool just before the object is added to the pool.
 

Method Detail

resetForPool

void resetForPool()
Invoked by a Pool just before the object is added to the pool. The object should return its state to how it was when freshly instantiated (or at least, its state should be indistinguishable from a freshly instantiated instance).


discardFromPool

void discardFromPool()
Invoked just as a Pool discards an object (for lack of use). This allows a last chance to perform final cleanup on the object while it is still referencable.