KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > pool > thread > ThreadObjectFactory


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.pool.thread;
8
9 import org.jfox.pool.PoolableObject;
10 import org.jfox.pool.SimpleObjectFactory;
11
12 /**
13  * override the SimpleObjectFactory.destroyObject method
14  *
15  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
16  */

17
18 public class ThreadObjectFactory extends SimpleObjectFactory {
19     public ThreadObjectFactory(Class JavaDoc classType) throws Exception JavaDoc {
20         super(classType);
21     }
22
23     public void destroyObject(PoolableObject object) throws Exception JavaDoc {
24 // System.out.println("destroy Thread");
25
object.notifyAll();
26         super.destroyObject(object);
27     }
28 }
29
Popular Tags