/*
 * 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.boot.spi;

import org.hibernate.boot.Metadata;
import org.hibernate.boot.MetadataSources;

An extension point for integrators that wish to hook into the process of how a Metadata is built. Intended as a "discoverable service" (ServiceLoader). There can be at most one implementation discovered that returns a non-null SessionFactoryBuilder.
Author:Gunnar Morling
/** * An extension point for integrators that wish to hook into the process of how a {@link Metadata} is built. Intended as * a "discoverable service" ({@link java.util.ServiceLoader}). There can be at most one implementation discovered that * returns a non-null SessionFactoryBuilder. * * @author Gunnar Morling */
public interface MetadataBuilderFactory {
Params:
  • metadatasources – The current metadata sources
  • defaultBuilder – The default builder, may be used as a delegate
Returns:a new metadata builder
/** * Creates a {@link MetadataBuilderImplementor}. * * @param metadatasources The current metadata sources * @param defaultBuilder The default builder, may be used as a delegate * @return a new metadata builder */
MetadataBuilderImplementor getMetadataBuilder(MetadataSources metadatasources, MetadataBuilderImplementor defaultBuilder); }