org.apache.tapestry.util.pool
Interface IPoolableAdaptor
- All Known Implementing Classes:
- BSFManagerPoolableAdaptor, NullPoolableAdaptor, DefaultPoolableAdaptor
- public interface IPoolableAdaptor
Defines methods that define an adaptor to provide
IPoolable
type behavior to arbitrary objects.
- Since:
- 3.0
- Version:
- $Id: IPoolableAdaptor.java,v 1.2 2003/04/17 21:33:44 hlship Exp $
- 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. |
resetForPool
public 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
public void discardFromPool(Object object)
- Invoked when a pooled object is discarded from the pool.