org.hibernate.boot.registry.StandardServiceInitiator 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 .
*/
package org.hibernate.boot.registry;
import java.util.Map;
import org.hibernate.service.Service;
import org.hibernate.service.spi.ServiceInitiator;
import org.hibernate.service.spi.ServiceRegistryImplementor;
/**
* Contract for an initiator of services that target the standard {@link org.hibernate.service.ServiceRegistry}.
*
* @param The type of the service initiated.
*
* @author Steve Ebersole
*/
public interface StandardServiceInitiator extends ServiceInitiator {
/**
* Initiates the managed service.
*
* @param configurationValues The configuration values in effect
* @param registry The service registry. Can be used to locate services needed to fulfill initiation.
*
* @return The initiated service.
*/
public R initiateService(Map configurationValues, ServiceRegistryImplementor registry);
}