org.hibernate.service.spi.SessionFactoryServiceRegistryFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
JPMS Module-Info's for a few of the Jakarta Libraries just until they add them in themselves
/*
* 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 .
*/
package org.hibernate.service.spi;
import org.hibernate.boot.spi.SessionFactoryOptions;
import org.hibernate.engine.spi.SessionFactoryImplementor;
import org.hibernate.service.Service;
/**
* Contract for builder of {@link SessionFactoryServiceRegistry} instances.
*
* Is itself a service within the standard service registry.
*
* @author Steve Ebersole
*/
public interface SessionFactoryServiceRegistryFactory extends Service {
/**
* Create the registry.
*
* @param sessionFactory The (still being built) session factory. Generally this is useful
* for grabbing a reference for later use. However, care should be taken when invoking on
* the session factory until after it has been fully initialized.
* @param sessionFactoryOptions The build options.
*
* @return The registry
*/
SessionFactoryServiceRegistry buildServiceRegistry(
SessionFactoryImplementor sessionFactory,
SessionFactoryOptions sessionFactoryOptions);
}