1 16 17 package org.apache.commons.pool; 18 19 29 public abstract class BaseKeyedPoolableObjectFactory implements KeyedPoolableObjectFactory { 30 public abstract Object makeObject(Object key) 31 throws Exception ; 32 33 34 public void destroyObject(Object key, Object obj) 35 throws Exception { 36 } 37 38 42 public boolean validateObject(Object key, Object obj) { 43 return true; 44 } 45 46 47 public void activateObject(Object key, Object obj) 48 throws Exception { 49 } 50 51 52 public void passivateObject(Object key, Object obj) 53 throws Exception { 54 } 55 } 56 | Popular Tags |