1 package org.jacorb.notification.util; 2 3 23 24 28 29 public abstract class AbstractPoolablePool extends AbstractObjectPool 30 { 31 public AbstractPoolablePool(String name, int threshold, int increase, int initial, int maxsize) 32 { 33 super(name, threshold, increase, initial, maxsize, 0); 34 } 35 36 public AbstractPoolablePool(String name) 37 { 38 super(name); 39 } 40 41 public void passivateObject(Object o) 42 { 43 ((AbstractPoolable) o).reset(); 44 } 45 46 public void activateObject(Object o) 47 { 48 ((AbstractPoolable) o).setObjectPool(this); 49 } 50 } 51 | Popular Tags |