1 package org.apache.turbine.util.pool;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import org.apache.turbine.util.TurbineException;
20
21 /***
22 * An interface for objects that can be pooled and recycled several times
23 * by different clients. Pooled objects that implement this interface
24 * use no argument ctor and recycle methods. Initialization is taken
25 * care of using the init method. This is a way to avoid
26 * introspection/reflection when pooling an object.
27 *
28 * @author <a href="mailto:jmcnally@collab.net">John McNally</a>
29 * @version $Id: InitableRecyclable.java 264148 2005-08-29 14:21:04Z henning $
30 */
31 public interface InitableRecyclable extends Recyclable
32 {
33 /***
34 * This method should be called after retrieving the object from
35 * the pool.
36 */
37 void init(Object initObj) throws TurbineException;
38 }