Uses of Interface
io.helidon.service.registry.ServiceRegistry
Packages that use ServiceRegistry
Package
Description
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.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 <T extends NamedService>
Optional<T> GeneratedService.discoverService
(Config config, String configKey, 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> GeneratedService.discoverServices
(Config config, String configKey, 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
.static ServiceRegistry
GlobalServiceRegistry.registry
(ServiceRegistry newGlobalRegistry) Set the current global registry.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.