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.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<K, V>
Inherited from org.hibernate.service.internal.AbstractServiceRegistryImpl:
ALLOW_CRAWLING

Constructor Summary

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

Constructs a StandardServiceRegistryImpl.

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

Constructs a StandardServiceRegistryImpl.

Method Summary

Modifier and TypeMethod and Description
private void
applyServiceRegistrations(List<StandardServiceInitiator<R extends Service>> serviceInitiators, List<ProvidedService<R>> providedServices)

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

Very advanced and tricky to handle: not designed for this.

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

Field Detail

configurationValuesback to summary
private Map<K, V> configurationValues

Constructor Detail

StandardServiceRegistryImplback to summary
public StandardServiceRegistryImpl(BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<R extends Service>> serviceInitiators, List<ProvidedService<R>> providedServices, Map<?, ?> 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<R extends Service>>

Any StandardServiceInitiators provided by the user to the builder

providedServices:List<ProvidedService<R>>

Any standard services provided directly to the builder

configurationValues:Map<?, ?>

Configuration values

Annotations
@SuppressWarnings:unchecked
See Also
org.hibernate.boot.registry.StandardServiceRegistryBuilder
StandardServiceRegistryImplback to summary
public StandardServiceRegistryImpl(boolean autoCloseRegistry, BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<R extends Service>> serviceInitiators, List<ProvidedService<R>> providedServices, Map<?, ?> 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<R extends Service>>

Any StandardServiceInitiators provided by the user to the builder

providedServices:List<ProvidedService<R>>

Any standard services provided directly to the builder

configurationValues:Map<?, ?>

Configuration values

Annotations
@SuppressWarnings:unchecked
See Also
org.hibernate.boot.registry.StandardServiceRegistryBuilder

Method Detail

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

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

Annotations
@Override
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
resetAndReactivateback to summary
public synchronized void resetAndReactivate(BootstrapServiceRegistry bootstrapServiceRegistry, List<StandardServiceInitiator<R extends Service>> serviceInitiators, List<ProvidedService<R>> providedServices, Map<?, ?> configurationValues)

Very advanced and tricky to handle: not designed for this. Intended for experiments only!