com.github.xionghuicoder.clearpool.datasource.DataSourceHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clearpool Show documentation
Show all versions of clearpool Show documentation
High performance distributed database pool
The newest version!
package com.github.xionghuicoder.clearpool.datasource;
import java.util.Map;
import javax.sql.CommonDataSource;
import com.github.xionghuicoder.clearpool.core.ConfigurationVO;
/**
* 缓存dataSource,初始化{@link ConfigurationVO#initDatasource ConfigurationVO.initDatasource}会取该数据。
*
* @author xionghui
* @version 1.0.0
* @since 1.0.0
* @see ConfigurationVO
*/
public abstract class DataSourceHolder {
private static Map dataSourceMap;
public static Map getDataSourceMap() {
return dataSourceMap;
}
public static void setDataSourceMap(Map dataSourceMap) {
DataSourceHolder.dataSourceMap = dataSourceMap;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy