Package org.hibernate.testing.orm.junit
Interface ServiceRegistryScope
public interface ServiceRegistryScope
-
Method Summary
Modifier and TypeMethodDescriptiondefault <R,
S extends Service>
RfromService
(Class<S> role, Function<S, R> action) static void
using
(Supplier<StandardServiceRegistry> ssrProducer, Consumer<ServiceRegistryScope> action) Generalized support for running exception-safe code using a ServiceRegistry to ensure proper shutdowndefault <S extends Service>
voidwithService
(Class<S> role, Consumer<S> action)
-
Method Details
-
using
static void using(Supplier<StandardServiceRegistry> ssrProducer, Consumer<ServiceRegistryScope> action) Generalized support for running exception-safe code using a ServiceRegistry to ensure proper shutdown -
getRegistry
StandardServiceRegistry getRegistry() -
withService
-
fromService
-