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
20
21
22 import org.apache.turbine.util.TurbineException;
23
24 /***
25 * An interface for objects that can be pooled and recycled several times
26 * by different clients. Pooled objects that implement this interface
27 * use no argument ctor and recycle methods. Initialization is taken
28 * care of using the init method. This is a way to avoid
29 * introspection/reflection when pooling an object.
30 *
31 * @author <a href="mailto:jmcnally@collab.net">John McNally</a>
32 * @version $Id: InitableRecyclable.java 534527 2007-05-02 16:10:59Z tv $
33 */
34 public interface InitableRecyclable extends Recyclable
35 {
36 /***
37 * This method should be called after retrieving the object from
38 * the pool.
39 */
40 void init(Object initObj) throws TurbineException;
41 }