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

org.hibernate.service.spi.ServiceRegistryImplementor Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * 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.service.Service;
import org.hibernate.service.ServiceRegistry;

/**
 * Additional integration contracts for a service registry.
 *
 * @author Steve Ebersole
 */
public interface ServiceRegistryImplementor extends ServiceRegistry {
	/**
	 * Locate the binding for the given role.  Should, generally speaking, look into parent registry if one.
	 *
	 * @param serviceRole The service role for which to locate a binding.
	 * @param  generic return type.
	 *
	 * @return The located binding; may be {@code null}
	 */
	public  ServiceBinding locateServiceBinding(Class serviceRole);

	/**
	 * Release resources
	 */
	public void destroy();

	/**
	 * When a registry is created with a parent, the parent is notified of the child
	 * via this callback.
	 */
	public void registerChild(ServiceRegistryImplementor child);

	/**
	 * When a registry is created with a parent, the parent is notified of the child
	 * via this callback.
	 */
	public void deRegisterChild(ServiceRegistryImplementor child);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy