public final class ReactiveServiceRegistryBuilder
extends org.hibernate.boot.registry.StandardServiceRegistryBuilder
StandardServiceRegistryBuilder
; the main difference
is the use of a different initial set of services and the fact this will
not attempt to load service contributors and other Integrators
.ReactiveServiceInitiators
Modifier | Constructor and Description |
---|---|
|
ReactiveServiceRegistryBuilder()
Create a default builder.
|
|
ReactiveServiceRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry)
Create a builder with the specified bootstrap services.
|
|
ReactiveServiceRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry,
org.hibernate.boot.cfgxml.spi.LoadedConfig loadedConfigBaseline)
Create a builder with the specified bootstrap services.
|
protected |
ReactiveServiceRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry,
Map settings,
org.hibernate.boot.cfgxml.spi.LoadedConfig loadedConfig)
Intended for use exclusively from JPA boot-strapping, or extensions of
this class.
|
protected |
ReactiveServiceRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry,
Map settings,
org.hibernate.boot.cfgxml.spi.LoadedConfig loadedConfig,
List<org.hibernate.boot.registry.StandardServiceInitiator> initiators)
Intended for use exclusively from Quarkus boot-strapping, or extensions of
this class which need to override the standard ServiceInitiator list.
|
Modifier and Type | Method and Description |
---|---|
org.hibernate.boot.registry.StandardServiceRegistryBuilder |
addInitiator(org.hibernate.boot.registry.StandardServiceInitiator initiator)
Adds a service initiator.
|
org.hibernate.boot.registry.StandardServiceRegistryBuilder |
addService(Class serviceRole,
org.hibernate.service.Service service)
Adds a user-provided service.
|
org.hibernate.boot.registry.StandardServiceRegistryBuilder |
applySetting(String settingName,
Object value)
Apply a setting value.
|
org.hibernate.boot.registry.StandardServiceRegistryBuilder |
applySettings(Map settings)
Apply a groups of setting values.
|
org.hibernate.boot.registry.StandardServiceRegistry |
build()
Build the StandardServiceRegistry.
|
void |
clearSettings() |
org.hibernate.boot.registry.StandardServiceRegistryBuilder |
configure()
Read setting information from an XML file using the standard resource location.
|
org.hibernate.boot.registry.StandardServiceRegistryBuilder |
configure(File configurationFile) |
org.hibernate.boot.registry.StandardServiceRegistryBuilder |
configure(org.hibernate.boot.cfgxml.spi.LoadedConfig loadedConfig) |
org.hibernate.boot.registry.StandardServiceRegistryBuilder |
configure(String resourceName)
Read setting information from an XML file using the named resource location.
|
org.hibernate.boot.registry.StandardServiceRegistryBuilder |
configure(URL url) |
static void |
destroy(org.hibernate.service.ServiceRegistry serviceRegistry)
Destroy a service registry.
|
org.hibernate.boot.registry.StandardServiceRegistryBuilder |
disableAutoClose()
By default, when a ServiceRegistry is no longer referenced by any other
registries as a parent it will be closed.
|
org.hibernate.boot.registry.StandardServiceRegistryBuilder |
enableAutoClose()
See the discussion on
disableAutoClose() . |
static org.hibernate.boot.registry.StandardServiceRegistryBuilder |
forJpa(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry) |
org.hibernate.boot.cfgxml.spi.LoadedConfig |
getAggregatedCfgXml()
Intended for internal testing use only!!
|
org.hibernate.boot.registry.BootstrapServiceRegistry |
getBootstrapServiceRegistry() |
org.hibernate.boot.cfgxml.internal.ConfigLoader |
getConfigLoader() |
org.hibernate.boot.registry.StandardServiceRegistryBuilder |
loadProperties(File file)
Read settings from a
Properties file by File reference |
org.hibernate.boot.registry.StandardServiceRegistryBuilder |
loadProperties(String resourceName)
Read settings from a
Properties file by resource name. |
public ReactiveServiceRegistryBuilder()
public ReactiveServiceRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry)
bootstrapServiceRegistry
- Provided bootstrap registry to use.protected ReactiveServiceRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry, Map settings, org.hibernate.boot.cfgxml.spi.LoadedConfig loadedConfig)
protected ReactiveServiceRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry, Map settings, org.hibernate.boot.cfgxml.spi.LoadedConfig loadedConfig, List<org.hibernate.boot.registry.StandardServiceInitiator> initiators)
public ReactiveServiceRegistryBuilder(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry, org.hibernate.boot.cfgxml.spi.LoadedConfig loadedConfigBaseline)
bootstrapServiceRegistry
- Provided bootstrap registry to use.public static org.hibernate.boot.registry.StandardServiceRegistryBuilder forJpa(org.hibernate.boot.registry.BootstrapServiceRegistry bootstrapServiceRegistry)
public org.hibernate.boot.cfgxml.internal.ConfigLoader getConfigLoader()
getConfigLoader
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
public org.hibernate.boot.cfgxml.spi.LoadedConfig getAggregatedCfgXml()
getAggregatedCfgXml
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
public org.hibernate.boot.registry.BootstrapServiceRegistry getBootstrapServiceRegistry()
getBootstrapServiceRegistry
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
public org.hibernate.boot.registry.StandardServiceRegistryBuilder loadProperties(String resourceName)
Properties
file by resource name.
Differs from configure()
and configure(String)
in that here we expect to read a
Properties
file while for configure()
we read the XML variant.
loadProperties
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
resourceName
- The name by which to perform a resource look up for the properties file.configure()
,
configure(String)
public org.hibernate.boot.registry.StandardServiceRegistryBuilder loadProperties(File file)
Properties
file by File reference
Differs from configure()
and configure(String)
in that here we expect to read a
Properties
file while for configure()
we read the XML variant.
loadProperties
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
file
- The properties File referenceconfigure()
,
configure(String)
public org.hibernate.boot.registry.StandardServiceRegistryBuilder configure()
configure
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
StandardServiceRegistryBuilder.DEFAULT_CFG_RESOURCE_NAME
,
configure(String)
,
loadProperties(String)
public org.hibernate.boot.registry.StandardServiceRegistryBuilder configure(String resourceName)
configure
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
resourceName
- The named resourcepublic org.hibernate.boot.registry.StandardServiceRegistryBuilder configure(File configurationFile)
configure
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
public org.hibernate.boot.registry.StandardServiceRegistryBuilder configure(URL url)
configure
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
public org.hibernate.boot.registry.StandardServiceRegistryBuilder configure(org.hibernate.boot.cfgxml.spi.LoadedConfig loadedConfig)
configure
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
public org.hibernate.boot.registry.StandardServiceRegistryBuilder applySetting(String settingName, Object value)
applySetting
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
settingName
- The name of the settingvalue
- The value to use.public org.hibernate.boot.registry.StandardServiceRegistryBuilder applySettings(Map settings)
applySettings
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
settings
- The incoming settings to applypublic void clearSettings()
clearSettings
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
public org.hibernate.boot.registry.StandardServiceRegistryBuilder addInitiator(org.hibernate.boot.registry.StandardServiceInitiator initiator)
addInitiator
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
initiator
- The initiator to be addedpublic org.hibernate.boot.registry.StandardServiceRegistryBuilder addService(Class serviceRole, org.hibernate.service.Service service)
addService
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
serviceRole
- The role of the service being addedservice
- The service implementationpublic org.hibernate.boot.registry.StandardServiceRegistryBuilder disableAutoClose()
disableAutoClose
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
public org.hibernate.boot.registry.StandardServiceRegistryBuilder enableAutoClose()
disableAutoClose()
. This method enables
the auto-closing.enableAutoClose
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
public org.hibernate.boot.registry.StandardServiceRegistry build()
build
in class org.hibernate.boot.registry.StandardServiceRegistryBuilder
public static void destroy(org.hibernate.service.ServiceRegistry serviceRegistry)
serviceRegistry
- The registry to be closed.Copyright © 2020-2022 Red Hat, Inc. All Rights Reserved.