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

se.ugli.habanero.j.datasource.DBCPDataSourceFactory Maven / Gradle / Ivy

There is a newer version: 1.8.1.1
Show newest version
package se.ugli.habanero.j.datasource;

import java.util.Properties;

import javax.sql.DataSource;

import org.apache.commons.dbcp.BasicDataSourceFactory;

import se.ugli.habanero.j.HabaneroException;

class DBCPDataSourceFactory {

	public static DataSource create(final Properties properties) {
		try {
			return BasicDataSourceFactory.createDataSource(properties);
		} catch (final Exception e) {
			throw new HabaneroException(e);
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy