01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.com
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.thread;
09:
10: import org.huihoo.jfox.pool.ObjectFactorySupport;
11: import org.huihoo.jfox.pool.PoolableObject;
12:
13: /**
14: * override the ObjectFactorySupport.destroyObject method
15: *
16: * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
17: */
18:
19: public class ThreadableObjectFactory extends ObjectFactorySupport {
20: public ThreadableObjectFactory(Class classType) throws Exception {
21: super (classType);
22: }
23:
24: public void destroyObject(PoolableObject object) throws Exception {
25: object.notifyAll();
26: super.destroyObject(object);
27: }
28: }
|