Top Description Methods
org.hibernate.service.spi

public Interface ServiceRegistryImplementor

extends ServiceRegistry
Known Direct Subinterfaces
org.hibernate.service.spi.SessionFactoryServiceRegistry
Known Direct Implementers
org.hibernate.boot.registry.internal.BootstrapServiceRegistryImpl, org.hibernate.service.internal.AbstractServiceRegistryImpl
Imports
org.hibernate.service.Service, .ServiceRegistry

Additional integration contracts for a service registry.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public default void
close()

Implements org.hibernate.service.ServiceRegistry.close.

Closes this resource, relinquishing any underlying resources.
public void
deRegisterChild(ServiceRegistryImplementor child)

When a registry is created with a parent, the parent is notified of the child via this callback.

public void
destroy()

Release resources

public <
generic return type.
R extends Service
>
ServiceBinding<R>

Returns:

The located binding; may be null
locateServiceBinding
(Class<R>
The service role for which to locate a binding.
serviceRole
)

Locate the binding for the given role.

public void
registerChild(ServiceRegistryImplementor child)

When a registry is created with a parent, the parent is notified of the child via this callback.

Inherited from org.hibernate.service.ServiceRegistry:
getParentServiceRegistrygetServicerequireService

Method Detail

closeback to summary
public default void close()

Implements org.hibernate.service.ServiceRegistry.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
deRegisterChildback to summary
public void deRegisterChild(ServiceRegistryImplementor child)

When a registry is created with a parent, the parent is notified of the child via this callback.

destroyback to summary
public void destroy()

Release resources

locateServiceBindingback to summary
public <R extends Service> ServiceBinding<R> locateServiceBinding(Class<R> serviceRole)

Locate the binding for the given role. Should, generally speaking, look into parent registry if one.

Parameters
<R>
generic return type.
serviceRole:Class<R>

The service role for which to locate a binding.

Returns:ServiceBinding<R>

The located binding; may be null

registerChildback to summary
public void registerChild(ServiceRegistryImplementor child)

When a registry is created with a parent, the parent is notified of the child via this callback.