com.guicedee.guicedpersistence.services.IPropertiesConnectionInfoReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guiced-persistence Show documentation
Show all versions of guiced-persistence Show documentation
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
package com.guicedee.guicedpersistence.services;
import com.guicedee.guicedpersistence.db.ConnectionBaseInfo;
import com.oracle.jaxb21.PersistenceUnit;
import java.util.Properties;
/**
* A functional interface to populate a connection base info based on properties received
*/
@FunctionalInterface
public interface IPropertiesConnectionInfoReader
{
/**
* Method populateConnectionBaseInfo ...
*
* @param unit
* of type PersistenceUnit
* @param filteredProperties
* of type Properties
* @param cbi
* of type ConnectionBaseInfo
*
* @return ConnectionBaseInfo
*/
ConnectionBaseInfo populateConnectionBaseInfo(PersistenceUnit unit, Properties filteredProperties, ConnectionBaseInfo cbi);
}