ServiceRegistry instances.
Configuration properties are enumerated by AvailableSettings.
StandardServiceRegistryImpl, BootstrapServiceRegistryBuilder
| Modifier and Type | Field and Description |
|---|---|
| private final LoadedConfig | |
| private boolean | |
| private final BootstrapServiceRegistry | |
| private final ConfigLoader | |
| public static final String | DEFAULT_CFG_RESOURCE_NAME
The default resource name for a Hibernate configuration XML file. |
| private final List | |
| private final List | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public | |
| public | StandardServiceRegistryBuilder(BootstrapServiceRegistry
Provided bootstrap registry to use. bootstrapServiceRegistry)Create a builder with the specified bootstrap services. |
| protected | StandardServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry, Map<String, Object> settings, LoadedConfig loadedConfig)
Intended for use exclusively from JPA bootstrapping, or extensions of this class. |
| protected | StandardServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry, Map<String, Object> settings, ConfigLoader loader, LoadedConfig loadedConfig, List<StandardServiceInitiator<?>> initiators)
Intended for use exclusively from Quarkus bootstrapping, or extensions of this class which need to override the standard ServiceInitiator list. |
| public | StandardServiceRegistryBuilder(BootstrapServiceRegistry
Provided bootstrap registry to use. bootstrapServiceRegistry, LoadedConfig loadedConfigBaseline)Create a builder with the specified bootstrap services. |
| Modifier and Type | Method and Description |
|---|---|
| public StandardServiceRegistryBuilder | Returns: this, for method chainingThe initiator to be added initiator)Adds a service initiator. |
| public <T extends Service> StandardServiceRegistryBuilder | Returns: this, for method chainingThe role of the service being added serviceRole, T The service implementation service)Adds a user-provided service. |
| private void | |
| public StandardServiceRegistryBuilder | Returns: this, for method chainingThe name of the setting settingName, Object The value to use. value)Apply a setting value. |
| public StandardServiceRegistryBuilder | Returns: this, for method chainingThe incoming settings to apply settings)Apply a group of settings. |
| public StandardServiceRegistryBuilder | Returns: this, for method chainingThe incoming settings to apply settings)Apply a group of settings. |
| public StandardServiceRegistry | Returns: A newly-instantiatedStandardServiceRegistryBuild and return the |
| public void | |
| public StandardServiceRegistryBuilder | Returns: this, for method chainingRead setting information from an XML file using the standard resource location. |
| public StandardServiceRegistryBuilder | |
| public StandardServiceRegistryBuilder | |
| public StandardServiceRegistryBuilder | |
| public StandardServiceRegistryBuilder | |
| public static void | |
| public StandardServiceRegistryBuilder | Returns: this, for method chainingBy default, when a |
| public StandardServiceRegistryBuilder | |
| public static StandardServiceRegistryBuilder | forJpa(BootstrapServiceRegistry bootstrapServiceRegistry)
Creates a |
| public LoadedConfig | |
| public BootstrapServiceRegistry | |
| public ConfigLoader | |
| public Map | |
| public StandardServiceRegistryBuilder | Returns: this, for method chainingThe name by which to perform a resource look up for the properties file resourceName)Read settings from a |
| public StandardServiceRegistryBuilder | Returns: this, for method chainingThe properties File reference file)Read settings from a
Differs from |
| private static List | Returns: List of standard initiatorsUsed from the |
| aggregatedCfgXml | back to summary |
|---|---|
| private final LoadedConfig aggregatedCfgXml | |
| autoCloseRegistry | back to summary |
|---|---|
| private boolean autoCloseRegistry | |
| bootstrapServiceRegistry | back to summary |
|---|---|
| private final BootstrapServiceRegistry bootstrapServiceRegistry | |
| configLoader | back to summary |
|---|---|
| private final ConfigLoader configLoader | |
| DEFAULT_CFG_RESOURCE_NAME | back to summary |
|---|---|
| public static final String DEFAULT_CFG_RESOURCE_NAME The default resource name for a Hibernate configuration XML file. | |
| initiators | back to summary |
|---|---|
| private final List<StandardServiceInitiator<?>> initiators | |
| providedServices | back to summary |
|---|---|
| private final List<ProvidedService<?>> providedServices | |
| settings | back to summary |
|---|---|
| private final Map<String, Object> settings | |
| StandardServiceRegistryBuilder | back to summary |
|---|---|
| public StandardServiceRegistryBuilder() Create a default builder. | |
| StandardServiceRegistryBuilder | back to summary |
|---|---|
| public StandardServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry) Create a builder with the specified bootstrap services.
| |
| StandardServiceRegistryBuilder | back to summary |
|---|---|
| protected StandardServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry, Map<String, Object> settings, LoadedConfig loadedConfig) Intended for use exclusively from JPA bootstrapping, or extensions of this class. Consider this an SPI.
| |
| StandardServiceRegistryBuilder | back to summary |
|---|---|
| protected StandardServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry, Map<String, Object> settings, ConfigLoader loader, LoadedConfig loadedConfig, List<StandardServiceInitiator<?>> initiators) Intended for use exclusively from Quarkus bootstrapping, or extensions of this class which need to override the standard ServiceInitiator list. Consider this an SPI. | |
| StandardServiceRegistryBuilder | back to summary |
|---|---|
| public StandardServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry, LoadedConfig loadedConfigBaseline) Create a builder with the specified bootstrap services.
| |
| addInitiator | back to summary |
|---|---|
| public StandardServiceRegistryBuilder addInitiator(StandardServiceInitiator<?> initiator) Adds a service initiator.
| |
| addService | back to summary |
|---|---|
| public <T extends Service> StandardServiceRegistryBuilder addService(Class<T> serviceRole, T service) Adds a user-provided service.
| |
| applyServiceContributors | back to summary |
|---|---|
| private void applyServiceContributors() | |
| applySetting | back to summary |
|---|---|
| public StandardServiceRegistryBuilder applySetting(String settingName, Object value) Apply a setting value.
| |
| applySettings | back to summary |
|---|---|
| public StandardServiceRegistryBuilder applySettings(Map<String, Object> settings) Apply a group of settings.
| |
| applySettings | back to summary |
|---|---|
| public StandardServiceRegistryBuilder applySettings(Properties settings) Apply a group of settings.
| |
| build | back to summary |
|---|---|
| public StandardServiceRegistry build() Build and return the
| |
| clearSettings | back to summary |
|---|---|
| public void clearSettings() Discard all the settings applied so far. | |
| configure | back to summary |
|---|---|
| public StandardServiceRegistryBuilder configure() Read setting information from an XML file using the standard resource location.
| |
| configure | back to summary |
|---|---|
| public StandardServiceRegistryBuilder configure(String resourceName) Read setting information from an XML file using the named resource location.
| |
| configure | back to summary |
|---|---|
| public StandardServiceRegistryBuilder configure(File configurationFile) | |
| configure | back to summary |
|---|---|
| public StandardServiceRegistryBuilder configure(URL url) | |
| configure | back to summary |
|---|---|
| public StandardServiceRegistryBuilder configure(LoadedConfig loadedConfig) | |
| destroy | back to summary |
|---|---|
| public static void destroy(ServiceRegistry serviceRegistry) Destroy a service registry. Applications should only destroy registries they have explicitly created.
| |
| disableAutoClose | back to summary |
|---|---|
| public StandardServiceRegistryBuilder disableAutoClose() By default, when a This method indicates that the registry being built should not be automatically closed. The caller takes responsibility for closing it.
| |
| enableAutoClose | back to summary |
|---|---|
| public StandardServiceRegistryBuilder enableAutoClose() Enables
| |
| forJpa | back to summary |
|---|---|
| public static StandardServiceRegistryBuilder forJpa(BootstrapServiceRegistry bootstrapServiceRegistry) Creates a
Intended only for use from
In particular, we ignore properties found in | |
| getAggregatedCfgXml | back to summary |
|---|---|
| public LoadedConfig getAggregatedCfgXml() Intended for internal testing use only!! | |
| getBootstrapServiceRegistry | back to summary |
|---|---|
| public BootstrapServiceRegistry getBootstrapServiceRegistry() | |
| getConfigLoader | back to summary |
|---|---|
| public ConfigLoader getConfigLoader() | |
| getSettings | back to summary |
|---|---|
| public Map Obtain the current aggregated settings.
| |
| loadProperties | back to summary |
|---|---|
| public StandardServiceRegistryBuilder loadProperties(String resourceName) Read settings from a
Differs from
| |
| loadProperties | back to summary |
|---|---|
| public StandardServiceRegistryBuilder loadProperties(File file) Read settings from a
Differs from
| |
| standardInitiatorList | back to summary |
|---|---|
| private static List Used from the
| |