Package org.hibernate.testing.boot
Class ServiceRegistryTestingImpl
- java.lang.Object
-
- org.hibernate.service.internal.AbstractServiceRegistryImpl
-
- org.hibernate.boot.registry.internal.StandardServiceRegistryImpl
-
- org.hibernate.testing.boot.ServiceRegistryTestingImpl
-
- All Implemented Interfaces:
AutoCloseable
,StandardServiceRegistry
,ServiceRegistry
,ServiceBinding.ServiceLifecycleOwner
,ServiceRegistryImplementor
public class ServiceRegistryTestingImpl extends StandardServiceRegistryImpl implements ServiceRegistryImplementor
ServiceRegistry useful in testing
-
-
Field Summary
-
Fields inherited from class org.hibernate.service.internal.AbstractServiceRegistryImpl
ALLOW_CRAWLING
-
-
Constructor Summary
Constructors Constructor Description ServiceRegistryTestingImpl(boolean autoCloseRegistry, BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices, Map<String,Object> configurationValues)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServiceRegistryTestingImpl
forUnitTesting()
static ServiceRegistryTestingImpl
forUnitTesting(Map<String,Object> settings)
-
Methods inherited from class org.hibernate.boot.registry.internal.StandardServiceRegistryImpl
configureService, destroy, initiateService, resetAndReactivate
-
Methods inherited from class org.hibernate.service.internal.AbstractServiceRegistryImpl
createService, createServiceBinding, createServiceBinding, deRegisterChild, fromRegistryOrChildren, fromRegistryOrChildren, getParentServiceRegistry, getService, injectDependencies, isActive, locateServiceBinding, locateServiceBinding, reactivate, registerChild, registerService, resetParent, startService, stopService, visitServiceBindings
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.service.ServiceRegistry
getParentServiceRegistry, getService, requireService
-
Methods inherited from interface org.hibernate.service.spi.ServiceRegistryImplementor
close, deRegisterChild, destroy, fromRegistryOrChildren, locateServiceBinding, registerChild
-
-
-
-
Constructor Detail
-
ServiceRegistryTestingImpl
public ServiceRegistryTestingImpl(boolean autoCloseRegistry, BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices, Map<String,Object> configurationValues)
-
-
Method Detail
-
forUnitTesting
public static ServiceRegistryTestingImpl forUnitTesting()
-
forUnitTesting
public static ServiceRegistryTestingImpl forUnitTesting(Map<String,Object> settings)
-
-