Uses of Interface
io.helidon.service.registry.ServiceRegistry
Packages that use ServiceRegistry
Package
Description
Provides the minimal set of types for immutable, tree-structured configuration access.
Support for mapping of types.
Provides interfaces and classes for loading and working with immutable, tree-structured
configuration data.
API required to define services, and to compile the code generated sources for Helidon Service Registry,
with a core service registry implementation (replacement for
ServiceLoader
).-
Uses of ServiceRegistry in io.helidon.common.config
Method parameters in io.helidon.common.config with type arguments of type ServiceRegistryModifier and TypeMethodDescriptionstatic <T extends NamedService>
Optional<T> ConfigBuilderSupport.discoverService
(Config config, String configKey, Optional<ServiceRegistry> serviceRegistry, Class<? extends ConfiguredProvider<T>> providerType, Class<T> configType, boolean discoverServices, Optional<T> existingValue) Used to discover service fromServiceRegistry
for builder options annotated withOption.Provider
, if the blueprint is annotated withPrototype.RegistrySupport
.static <T extends NamedService>
List<T> ConfigBuilderSupport.discoverServices
(Config config, String configKey, Optional<ServiceRegistry> serviceRegistry, Class<? extends ConfiguredProvider<T>> providerType, Class<T> configType, boolean allFromRegistry, List<T> existingValues) Used to discover services fromServiceRegistry
for builder options annotated withOption.Provider
, if the blueprint is annotated withPrototype.RegistrySupport
. -
Uses of ServiceRegistry in io.helidon.common.mapper
Methods in io.helidon.common.mapper with parameters of type ServiceRegistryModifier and TypeMethodDescriptionMappersConfig.BuilderBase.serviceRegistry
(ServiceRegistry registry) Provide an explicit registry instance to use. -
Uses of ServiceRegistry in io.helidon.config
Methods in io.helidon.config with parameters of type ServiceRegistryModifier and TypeMethodDescriptionConfig.Builder.serviceRegistry
(ServiceRegistry serviceRegistry) Configure an explicit service registry to use to discover services (config sources, parsers etc.). -
Uses of ServiceRegistry in io.helidon.service.registry
Methods in io.helidon.service.registry that return ServiceRegistryModifier and TypeMethodDescriptionstatic ServiceRegistry
GlobalServiceRegistry.registry()
Current global service registry, will create a new instance if one is not configured.static ServiceRegistry
GlobalServiceRegistry.registry
(ServiceRegistry newGlobalRegistry) Set the current global registry.static ServiceRegistry
GlobalServiceRegistry.registry
(Supplier<ServiceRegistry> registrySupplier) Current global registry if configured, will replace the current global registry with the one provided by supplier if none registered.ServiceRegistryManager.registry()
Get (or initialize and get) the service registry managed by this manager.Methods in io.helidon.service.registry with parameters of type ServiceRegistryModifier and TypeMethodDescriptionstatic ServiceRegistry
GlobalServiceRegistry.registry
(ServiceRegistry newGlobalRegistry) Set the current global registry.static void
Services.registry
(ServiceRegistry registry) Configure the application wide registry to be used by components that require static lookup of required services.Method parameters in io.helidon.service.registry with type arguments of type ServiceRegistryModifier and TypeMethodDescriptionstatic ServiceRegistry
GlobalServiceRegistry.registry
(Supplier<ServiceRegistry> registrySupplier) Current global registry if configured, will replace the current global registry with the one provided by supplier if none registered.static <T> Optional
<T> RegistryBuilderSupport.service
(Optional<ServiceRegistry> registry, TypeName contract, Optional<T> existingValue, boolean useRegistry) Get the first service from the registry if not configured in the builder.static <T> List
<T> RegistryBuilderSupport.serviceList
(Optional<ServiceRegistry> registry, TypeName contract, boolean useRegistry) Discover services from the registry.static <T> Set
<T> RegistryBuilderSupport.serviceSet
(Optional<ServiceRegistry> registry, TypeName contract, boolean useRegistry) Discover services from the registry.