public interface ServiceRegistryScope
| Modifier and Type | Method and Description |
|---|---|
default <R,S extends org.hibernate.service.Service> |
fromService(Class<S> role,
Function<S,R> action) |
org.hibernate.boot.registry.StandardServiceRegistry |
getRegistry() |
static void |
using(Supplier<org.hibernate.boot.registry.StandardServiceRegistry> ssrProducer,
Consumer<ServiceRegistryScope> action)
Generalized support for running exception-safe code using a ServiceRegistry to
ensure proper shutdown
|
default <S extends org.hibernate.service.Service> |
withService(Class<S> role,
Consumer<S> action) |
static void using(Supplier<org.hibernate.boot.registry.StandardServiceRegistry> ssrProducer, Consumer<ServiceRegistryScope> action)
org.hibernate.boot.registry.StandardServiceRegistry getRegistry()
default <S extends org.hibernate.service.Service> void withService(Class<S> role, Consumer<S> action)
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.