All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.xionghuicoder.clearpool.datasource.DataSourceHolder Maven / Gradle / Ivy

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