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

org.hibernate.testing.junit5.EntityManagerFactoryScopeContainer Maven / Gradle / Ivy

/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later
 * See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
 */
package org.hibernate.testing.junit5;

/**
 * The keystone in EntityManagerFactoryScopeExtension support.
 *
 * This is how the extensions know how to build an EntityManagerFactory (scope)
 * and how to inject that EntityManagerFactory (scope) back into the test.
 *
 * @author Chris Cranford
 */
public interface EntityManagerFactoryScopeContainer {
	/**
	 * Callback to inject the EntityManagerFactoryScope into the container.
	 */
	void injectEntityManagerFactoryScope(EntityManagerFactoryScope scope);

	/**
	 * Obtain the {@link EntityManagerFactoryProducer}.  Quite often this is also
	 * implemented by the container itself.
	 */
	EntityManagerFactoryProducer getEntityManagerFactoryProducer();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy