public final class ReactiveServiceRegistryBuilder
extends 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(BootstrapServiceRegistry bootstrapServiceRegistry) Create a builder with the specified bootstrap services. |
| ReactiveServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry, LoadedConfig loadedConfigBaseline) Create a builder with the specified bootstrap services. |
protected | ReactiveServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry, Map settings, LoadedConfig loadedConfig) Intended for use exclusively from JPA boot-strapping, or extensions of this class. |
protected | ReactiveServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry, Map settings, LoadedConfig loadedConfig, List<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 |
---|---|
StandardServiceRegistryBuilder | addInitiator(StandardServiceInitiator initiator) Adds a service initiator. |
StandardServiceRegistryBuilder | addService(Class serviceRole, Service service) Adds a user-provided service. |
StandardServiceRegistryBuilder | applySetting(String settingName, Object value) Apply a setting value. |
StandardServiceRegistryBuilder | applySettings(Map settings) Apply a groups of setting values. |
StandardServiceRegistry | build() Build the StandardServiceRegistry. |
void | clearSettings() |
StandardServiceRegistryBuilder | configure() Read setting information from an XML file using the standard resource location. |
StandardServiceRegistryBuilder | configure(File configurationFile) |
StandardServiceRegistryBuilder | configure(LoadedConfig loadedConfig) |
StandardServiceRegistryBuilder | configure(String resourceName) Read setting information from an XML file using the named resource location. |
StandardServiceRegistryBuilder | configure(URL url) |
static void | destroy(ServiceRegistry serviceRegistry) Destroy a service registry. |
StandardServiceRegistryBuilder | disableAutoClose() By default, when a ServiceRegistry is no longer referenced by any other registries as a parent it will be closed. |
StandardServiceRegistryBuilder | enableAutoClose() See the discussion on disableAutoClose() . |
static StandardServiceRegistryBuilder | forJpa(BootstrapServiceRegistry bootstrapServiceRegistry) |
LoadedConfig | getAggregatedCfgXml() Intended for internal testing use only!! |
BootstrapServiceRegistry | getBootstrapServiceRegistry() |
ConfigLoader | getConfigLoader() |
StandardServiceRegistryBuilder | loadProperties(File file) Read settings from a Properties file by File reference |
StandardServiceRegistryBuilder | loadProperties(String resourceName) Read settings from a Properties file by resource name. |
public ReactiveServiceRegistryBuilder()
public ReactiveServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry)
bootstrapServiceRegistry
- Provided bootstrap registry to use.protected ReactiveServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry, Map settings, LoadedConfig loadedConfig)
forJpa(BootstrapServiceRegistry)
protected ReactiveServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry, Map settings, LoadedConfig loadedConfig, List<StandardServiceInitiator> initiators)
public ReactiveServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceRegistry, LoadedConfig loadedConfigBaseline)
bootstrapServiceRegistry
- Provided bootstrap registry to use.public static StandardServiceRegistryBuilder forJpa(BootstrapServiceRegistry bootstrapServiceRegistry)
public ConfigLoader getConfigLoader()
public LoadedConfig getAggregatedCfgXml()
public BootstrapServiceRegistry getBootstrapServiceRegistry()
public 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.
resourceName
- The name by which to perform a resource look up for the properties file.configure()
, configure(String)
public 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.
file
- The properties File referenceconfigure()
, configure(String)
public StandardServiceRegistryBuilder configure()
StandardServiceRegistryBuilder#DEFAULT_CFG_RESOURCE_NAME
, configure(String)
, loadProperties(String)
public StandardServiceRegistryBuilder configure(String resourceName)
resourceName
- The named resourcepublic StandardServiceRegistryBuilder configure(File configurationFile)
public StandardServiceRegistryBuilder configure(URL url)
public StandardServiceRegistryBuilder configure(LoadedConfig loadedConfig)
public StandardServiceRegistryBuilder applySetting(String settingName, Object value)
settingName
- The name of the settingvalue
- The value to use.public StandardServiceRegistryBuilder applySettings(Map settings)
settings
- The incoming settings to applypublic void clearSettings()
public StandardServiceRegistryBuilder addInitiator(StandardServiceInitiator initiator)
initiator
- The initiator to be addedpublic StandardServiceRegistryBuilder addService(Class serviceRole, Service service)
serviceRole
- The role of the service being addedservice
- The service implementationpublic StandardServiceRegistryBuilder disableAutoClose()
public StandardServiceRegistryBuilder enableAutoClose()
disableAutoClose()
. This method enables the auto-closing.public StandardServiceRegistry build()
public static void destroy(ServiceRegistry serviceRegistry)
serviceRegistry
- The registry to be closed.