Class ServiceRegistryTestingImpl

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.hibernate.boot.registry.StandardServiceRegistry, org.hibernate.service.ServiceRegistry, org.hibernate.service.spi.ServiceBinding.ServiceLifecycleOwner, org.hibernate.service.spi.ServiceRegistryImplementor

    public class ServiceRegistryTestingImpl
    extends org.hibernate.boot.registry.internal.StandardServiceRegistryImpl
    implements org.hibernate.service.spi.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, org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry, java.util.List<org.hibernate.boot.registry.StandardServiceInitiator> serviceInitiators, java.util.List<org.hibernate.service.internal.ProvidedService> providedServices, java.util.Map<?,​?> configurationValues)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ServiceRegistryTestingImpl forUnitTesting()  
      static ServiceRegistryTestingImpl forUnitTesting​(java.util.Map 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, 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, locateServiceBinding, registerChild
    • Constructor Detail

      • ServiceRegistryTestingImpl

        public ServiceRegistryTestingImpl​(boolean autoCloseRegistry,
                                          org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry,
                                          java.util.List<org.hibernate.boot.registry.StandardServiceInitiator> serviceInitiators,
                                          java.util.List<org.hibernate.service.internal.ProvidedService> providedServices,
                                          java.util.Map<?,​?> configurationValues)