- All Known Implementing Classes:
- EntityManagerFactoryBasedFunctionalTest
public interface EntityManagerFactoryProducer
Contract for something that can build an EntityManagerFactory.
Used by EntityManagerFactoryScopeExtension to create the EntityManagerFactoryScope.
Generally speaking, a test class would implement EntityManagerFactoryScopeContainer
and return the EntityManagerFactoryProducer to be used for those tests. The
EntityManagerFactoryProducer is then used to build the EntityManagerFactoryScope
which is injected back into the EntityManagerFactoryScopeContainer.
- See Also:
EntityManagerFactoryScopeExtension,
EntityManagerFactoryScope,
EntityManagerFactoryScopeContainer