Class StandardServiceRegistryImpl
java.lang.Object
org.hibernate.service.internal.AbstractServiceRegistryImpl
org.hibernate.boot.registry.internal.StandardServiceRegistryImpl
- All Implemented Interfaces:
AutoCloseable,StandardServiceRegistry,ServiceRegistry,ServiceBinding.ServiceLifecycleOwner,ServiceRegistryImplementor
public class StandardServiceRegistryImpl
extends AbstractServiceRegistryImpl
implements StandardServiceRegistry
Standard Hibernate implementation of the standard service registry.
-
Field Summary
Fields inherited from class org.hibernate.service.internal.AbstractServiceRegistryImpl
ALLOW_CRAWLING -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStandardServiceRegistryImpl(boolean autoCloseRegistry, BootstrapServiceRegistry bootstrapServiceRegistry, Map<String, Object> configurationValues) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyServiceRegistrations(List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices) <R extends Service>
voidconfigureService(ServiceBinding<R> serviceBinding) static StandardServiceRegistryImplcreate(boolean autoCloseRegistry, BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices, Map<String, Object> configurationValues) Constructs a StandardServiceRegistryImpl.static StandardServiceRegistryImplcreate(BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices, Map<String, Object> configurationValues) Constructs a StandardServiceRegistryImpl.voiddestroy()Release resources<R extends Service>
RinitiateService(ServiceInitiator<R> serviceInitiator) voidresetAndReactivate(BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices, Map<?, ?> configurationValues) Not intended for general use.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, visitServiceBindingsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.service.ServiceRegistry
getParentServiceRegistry, getService, requireServiceMethods inherited from interface org.hibernate.service.spi.ServiceRegistryImplementor
close
-
Constructor Details
-
StandardServiceRegistryImpl
protected StandardServiceRegistryImpl(boolean autoCloseRegistry, BootstrapServiceRegistry bootstrapServiceRegistry, Map<String, Object> configurationValues)
-
-
Method Details
-
create
public static StandardServiceRegistryImpl create(BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices, Map<String, Object> configurationValues) Constructs a StandardServiceRegistryImpl. Should not be instantiated directly; useStandardServiceRegistryBuilderinstead- Parameters:
bootstrapServiceRegistry- The bootstrap service registry.serviceInitiators- Any StandardServiceInitiators provided by the user to the builderprovidedServices- Any standard services provided directly to the builderconfigurationValues- Configuration values- See Also:
-
create
public static StandardServiceRegistryImpl create(boolean autoCloseRegistry, BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices, Map<String, Object> configurationValues) Constructs a StandardServiceRegistryImpl. Should not be instantiated directly; useStandardServiceRegistryBuilderinstead- Parameters:
autoCloseRegistry- See discussion onStandardServiceRegistryBuilder.disableAutoClose()bootstrapServiceRegistry- The bootstrap service registry.serviceInitiators- Any StandardServiceInitiators provided by the user to the builderprovidedServices- Any standard services provided directly to the builderconfigurationValues- Configuration values- See Also:
-
applyServiceRegistrations
protected void applyServiceRegistrations(List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices) -
resetAndReactivate
@Internal public void resetAndReactivate(BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices, Map<?, ?> configurationValues) Not intended for general use. We need the ability to stop and "reactivate" a registry to allow experimentation with technologies such as GraalVM, Quarkus and Cri-O. -
initiateService
- Specified by:
initiateServicein interfaceServiceBinding.ServiceLifecycleOwner
-
configureService
- Specified by:
configureServicein interfaceServiceBinding.ServiceLifecycleOwner
-
destroy
public void destroy()Description copied from interface:ServiceRegistryImplementorRelease resources- Specified by:
destroyin interfaceServiceRegistryImplementor- Overrides:
destroyin classAbstractServiceRegistryImpl
-