01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.org
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package org.huihoo.jfox.pool;
09:
10: /**
11: *
12: * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
13: */
14:
15: public interface PoolableObject {
16:
17: /**
18: * actvite the object before it be retrived
19: */
20: void activate() throws Exception;
21:
22: /**
23: * passivate the object before it be restored, set the status to initialized
24: */
25: void passivate() throws Exception;
26:
27: }
|