org.unitils.orm.common.util
Interface OrmPersistenceUnitLoader<ORMPU,ORMCONFOBJ,ORMCFG extends OrmConfig>

Type Parameters:
ORMPU - Type of the persistence unit
ORMCONFOBJ - Type of the implementation specific configuration object
ORMCFG - Subtype of OrmConfig that is used
All Known Implementing Classes:
HibernateSessionFactoryLoader, JpaEntityManagerFactoryLoader

public interface OrmPersistenceUnitLoader<ORMPU,ORMCONFOBJ,ORMCFG extends OrmConfig>

Defines the contract for implementations that can load a persistence unit given a persistence unit configuration object.

Author:
Filip Neven, Tim Ducheyne

Method Summary
 ConfiguredOrmPersistenceUnit<ORMPU,ORMCONFOBJ> getConfiguredOrmPersistenceUnit(Object testObject, ORMCFG ormConfig)
           
 

Method Detail

getConfiguredOrmPersistenceUnit

ConfiguredOrmPersistenceUnit<ORMPU,ORMCONFOBJ> getConfiguredOrmPersistenceUnit(Object testObject,
                                                                               ORMCFG ormConfig)
Parameters:
testObject - The test object, not null
ormConfig - The persistence unit configuration, not null
Returns:
An instance of ConfiguredOrmPersistenceUnit that wraps the persistence unit and an implementation specific configuration object


Copyright © 2011. All Rights Reserved.