org.zodiac.datasource.jdbc.factory.DefaultDataSourceFactory Maven / Gradle / Ivy
The newest version!
package org.zodiac.datasource.jdbc.factory;
import javax.sql.DataSource;
import java.sql.SQLException;
public class DefaultDataSourceFactory extends BaseDataSourceFactory {
private String dataSourceKey;
public DefaultDataSourceFactory(String dataSourceKey) {
this.dataSourceKey = dataSourceKey;
}
@Override
public DataSource getDataSource() throws SQLException {
DataSource dataSource = getDataSourceBean(dataSourceKey);
return dataSource;
}
}