public void registerDataSource(String name, DataSource dataSource) {
        if (dataSource == null) {
            throw new NullPointerException("dataSource");
        }
        if (StringUtils.isBlank(name)) {
            throw new IllegalArgumentException("blank name");
        }
        if (name.equals("*")) {
            defaultDataSource = new DataSourceHolder(dataSource);
        } else {
            dataSources.putIfAbsent(name, new DataSourceHolder(dataSource));
        }
    }
public void registerDataSource ( String name , DataSource dataSource ) { if ( dataSource == null ) { throw new NullPointerException ( "dataSource" ) ; } if ( StringUtils . isBlank ( name ) ) { throw new IllegalArgumentException ( "blank name" ) ; } if ( name . equals ( "*" ) ) { defaultDataSource = new DataSourceHolder ( dataSource ) ; } else { dataSources . putIfAbsent ( name , new DataSourceHolder ( dataSource ) ) ; } }
注册一个数据源，名称以点号为分隔分成多级。如果名称星号，表示默认数据源。

@param name
@param dataSource