1 6 7 package org.jfox.pool.thread; 8 9 import org.jfox.pool.PoolableObject; 10 import org.jfox.pool.SimpleObjectFactory; 11 12 17 18 public class ThreadObjectFactory extends SimpleObjectFactory { 19 public ThreadObjectFactory(Class classType) throws Exception { 20 super(classType); 21 } 22 23 public void destroyObject(PoolableObject object) throws Exception { 24 object.notifyAll(); 26 super.destroyObject(object); 27 } 28 } 29 | Popular Tags |