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

com.jwebmp.guicedpersistence.db.DataSourceProvider Maven / Gradle / Ivy

Go to download

A complete JPA 2.1 implementation for Standalone or EE Implementation. Enables Multiple Persistence units with full JTA Support using BTM. Perfect for Guice implementations, test suites, and Guice enabled Web Applications or EAR Projects. Requires JDK 8

There is a newer version: 0.66.0.1
Show newest version
package com.jwebmp.guicedpersistence.db;

import com.google.inject.Provider;

import javax.sql.DataSource;

class DataSourceProvider
		implements Provider
{
	private ConnectionBaseInfo info;

	public DataSourceProvider(ConnectionBaseInfo info)
	{
		this.info = info;
	}

	@Override
	public DataSource get()
	{
		return info.toPooledDatasource();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy