org.hibernate.testing.junit5.SessionFactoryScopeContainer 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 SessionFactoryScopeExtension support.
*
* This is how the extensions know how to build a SessionFactory (scope)
* and how to inject that SessionFactory (scope) back into the test
*
* @author Steve Ebersole
*/
public interface SessionFactoryScopeContainer {
/**
* Callback to inject the SessionFactoryScope into the container
*/
void injectSessionFactoryScope(SessionFactoryScope scope);
/**
* Obtain the {@link SessionFactoryProducer}. Quite often this
* is als implemented by the container itself.
*/
SessionFactoryProducer getSessionFactoryProducer();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy