public void removeDataSource(String dataSource) { JdbcConnectPool pool = findDataSource(dataSource); if (pool != null) { pool.stopCheckThread(); pool.destory(); this.pools.remove(dataSource); pool = null; } }
public void destory() { if (this.pools != null) { Enumeration enum1 = this.pools.keys(); while (enum1.hasMoreElements()) { String s = (String) enum1.nextElement(); JdbcConnectPool pool = (JdbcConnectPool) this.pools.get(s); pool.stopCheckThread(); pool.destory(); this.pools.remove(s); pool = null; } this.pools.clear(); } }