org.unitils.orm.common.util
Interface OrmPersistenceUnitLoader<ORMPU,ORMCONFOBJ,ORMCFG extends OrmConfig>
- Type Parameters:
ORMPU - Type of the persistence unitORMCONFOBJ - Type of the implementation specific configuration objectORMCFG - 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
getConfiguredOrmPersistenceUnit
ConfiguredOrmPersistenceUnit<ORMPU,ORMCONFOBJ> getConfiguredOrmPersistenceUnit(Object testObject,
ORMCFG ormConfig)
- Parameters:
testObject - The test object, not nullormConfig - 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.