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
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServiceRegistryTestingImpl
create(boolean autoCloseRegistry, BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices, Map<String,Object> configurationValues)
static ServiceRegistryTestingImpl
forUnitTesting()
static ServiceRegistryTestingImpl
forUnitTesting(Map<String,Object> settings)
-
Methods inherited from class org.hibernate.boot.registry.internal.StandardServiceRegistryImpl
applyServiceRegistrations, configureService, create, destroy, initiateService, resetAndReactivate
-
Methods inherited from class org.hibernate.service.internal.AbstractServiceRegistryImpl
createService, createServiceBinding, createServiceBinding, deRegisterChild, fromRegistryOrChildren, fromRegistryOrChildren, getParentServiceRegistry, getService, initialize, 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
-
-
-
-
Method Detail
-
forUnitTesting
public static ServiceRegistryTestingImpl forUnitTesting()
-
forUnitTesting
public static ServiceRegistryTestingImpl forUnitTesting(Map<String,Object> settings)
-
create
public static ServiceRegistryTestingImpl create(boolean autoCloseRegistry, BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices, Map<String,Object> configurationValues)
-
-