Package org.hibernate.service.spi
Interface ServiceRegistryImplementor
-
- All Superinterfaces:
java.lang.AutoCloseable,ServiceRegistry
- All Known Subinterfaces:
SessionFactoryServiceRegistry
- All Known Implementing Classes:
org.hibernate.service.internal.AbstractServiceRegistryImpl,ServiceRegistryTestingImpl,org.hibernate.boot.registry.internal.StandardServiceRegistryImpl
public interface ServiceRegistryImplementor extends ServiceRegistry
Additional integration contracts for a service registry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()voiddeRegisterChild(ServiceRegistryImplementor child)When a registry is created with a parent, the parent is notified of the child via this callback.voiddestroy()Release resources<R extends Service>
ServiceBinding<R>locateServiceBinding(java.lang.Class<R> serviceRole)Locate the binding for the given role.voidregisterChild(ServiceRegistryImplementor child)When a registry is created with a parent, the parent is notified of the child via this callback.-
Methods inherited from interface org.hibernate.service.ServiceRegistry
getParentServiceRegistry, getService, requireService
-
-
-
-
Method Detail
-
locateServiceBinding
<R extends Service> ServiceBinding<R> locateServiceBinding(java.lang.Class<R> serviceRole)
Locate the binding for the given role. Should, generally speaking, look into parent registry if one.- Type Parameters:
R- generic return type.- Parameters:
serviceRole- The service role for which to locate a binding.- Returns:
- The located binding; may be
null
-
close
default void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceServiceRegistry
-
destroy
void destroy()
Release resources
-
registerChild
void registerChild(ServiceRegistryImplementor child)
When a registry is created with a parent, the parent is notified of the child via this callback.
-
deRegisterChild
void deRegisterChild(ServiceRegistryImplementor child)
When a registry is created with a parent, the parent is notified of the child via this callback.
-
-