Top Description Fields Constructors Methods
org.hibernate.boot.registry.internal

public Class StandardServiceRegistryImpl

extends AbstractServiceRegistryImpl
implements StandardServiceRegistry
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.registry.StandardServiceRegistry, org.hibernate.service.ServiceRegistry, java.lang.AutoCloseable
Imports
java.util.HashMap, .List, .Map, org.hibernate.boot.registry.BootstrapServiceRegistry, .StandardServiceInitiator, .StandardServiceRegistry, org.hibernate.cfg.AvailableSettings, org.hibernate.service.Service, org.hibernate.service.internal.AbstractServiceRegistryImpl, .ProvidedService, org.hibernate.service.spi.Configurable, .ServiceBinding, .ServiceInitiator

Standard Hibernate implementation of the standard service registry.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private Map<String, Object>
Inherited from org.hibernate.service.internal.AbstractServiceRegistryImpl:
ALLOW_CRAWLING

Constructor Summary

AccessConstructor and Description
protected
StandardServiceRegistryImpl(boolean autoCloseRegistry, BootstrapServiceRegistry bootstrapServiceRegistry, Map<String, Object> configurationValues)

Method Summary

Modifier and TypeMethod and Description
protected void
applyServiceRegistrations(List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices)

public synchronized <R extends Service> void
public static StandardServiceRegistryImpl
create(BootstrapServiceRegistry
The bootstrap service registry.
bootstrapServiceRegistry
,
List<StandardServiceInitiator<?>>
Any StandardServiceInitiators provided by the user to the builder
serviceInitiators
,
List<ProvidedService<?>>
Any standard services provided directly to the builder
providedServices
,
Map<String, Object>
Configuration values
configurationValues
)

Constructs a StandardServiceRegistryImpl.

public static StandardServiceRegistryImpl
create(boolean autoCloseRegistry, BootstrapServiceRegistry
The bootstrap service registry.
bootstrapServiceRegistry
,
List<StandardServiceInitiator<?>>
Any StandardServiceInitiators provided by the user to the builder
serviceInitiators
,
List<ProvidedService<?>>
Any standard services provided directly to the builder
providedServices
,
Map<String, Object>
Configuration values
configurationValues
)

Constructs a StandardServiceRegistryImpl.

public synchronized void
public synchronized <R extends Service> R
private static Map<String, Object>
normalize(Map<String, Object> configurationValues)

public synchronized void
resetAndReactivate(BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices, Map<?, ?> configurationValues)

Not intended for general use.

Inherited from org.hibernate.service.internal.AbstractServiceRegistryImpl:
createServicecreateServiceBindingcreateServiceBindingdeRegisterChildfromRegistryOrChildrenfromRegistryOrChildrengetParentServiceRegistrygetServiceinitializeinjectDependenciesisActivelocateServiceBindinglocateServiceBindingreactivateregisterChildregisterServiceresetParentstartServicestopServicevisitServiceBindings

Field Detail

configurationValuesback to summary
private Map<String, Object> configurationValues

Constructor Detail

StandardServiceRegistryImplback to summary
protected StandardServiceRegistryImpl(boolean autoCloseRegistry, BootstrapServiceRegistry bootstrapServiceRegistry, Map<String, Object> configurationValues)

Method Detail

applyServiceRegistrationsback to summary
protected void applyServiceRegistrations(List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices)
configureServiceback to summary
public synchronized <R extends Service> void configureService(ServiceBinding<R> serviceBinding)

Implements org.hibernate.service.spi.ServiceBinding.ServiceLifecycleOwner.configureService.

Annotations
@Override
createback to summary
public static StandardServiceRegistryImpl create(BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<?>> serviceInitiators, List<ProvidedService<?>> providedServices, Map<String, Object> configurationValues)

Constructs a StandardServiceRegistryImpl. Should not be instantiated directly; use org.hibernate.boot.registry.StandardServiceRegistryBuilder instead

Parameters
bootstrapServiceRegistry:BootstrapServiceRegistry

The bootstrap service registry.

serviceInitiators:List<StandardServiceInitiator<?>>

Any StandardServiceInitiators provided by the user to the builder

providedServices:List<ProvidedService<?>>

Any standard services provided directly to the builder

configurationValues:Map<String, Object>

Configuration values

See Also
org.hibernate.boot.registry.StandardServiceRegistryBuilder
createback to summary
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; use org.hibernate.boot.registry.StandardServiceRegistryBuilder instead

Parameters
autoCloseRegistry:boolean

See discussion on org.hibernate.boot.registry.StandardServiceRegistryBuilder#disableAutoClose

bootstrapServiceRegistry:BootstrapServiceRegistry

The bootstrap service registry.

serviceInitiators:List<StandardServiceInitiator<?>>

Any StandardServiceInitiators provided by the user to the builder

providedServices:List<ProvidedService<?>>

Any standard services provided directly to the builder

configurationValues:Map<String, Object>

Configuration values

See Also
org.hibernate.boot.registry.StandardServiceRegistryBuilder
destroyback to summary
public synchronized void destroy()

Overrides org.hibernate.service.internal.AbstractServiceRegistryImpl.destroy.

Implements org.hibernate.service.spi.ServiceRegistryImplementor.destroy.

Doc from org.hibernate.service.spi.ServiceRegistryImplementor.destroy.

Release resources

Annotations
@Override
initiateServiceback to summary
public synchronized <R extends Service> R initiateService(ServiceInitiator<R> serviceInitiator)

Implements org.hibernate.service.spi.ServiceBinding.ServiceLifecycleOwner.initiateService.

Annotations
@Override
normalizeback to summary
private static Map<String, Object> normalize(Map<String, Object> configurationValues)
resetAndReactivateback to summary
public synchronized 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.