java.lang.Object
io.helidon.service.registry.GeneratedService
All types in this class are used from generated code for services.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A descriptor of a service. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends NamedService>
Optional<T> 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> 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
.
-
Method Details
-
discoverServices
public static <T extends NamedService> List<T> 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
.- Type Parameters:
T
- type of the service- Parameters:
config
- configuration of the optionconfigKey
- configuration key associated with this optionserviceRegistry
- service registry instanceproviderType
- type of the service provider (contract)configType
- type of the configurationallFromRegistry
- whether to use all services from the registryexistingValues
- existing values that was explicitly configured by the user- Returns:
- instances from the user augmented with instances from the registry
-
discoverService
public static <T extends NamedService> Optional<T> 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
.- Type Parameters:
T
- type of the service- Parameters:
config
- configuration of the optionconfigKey
- configuration key associated with this optionserviceRegistry
- service registry instanceproviderType
- type of the service provider (contract)configType
- type of the configurationdiscoverServices
- whether to discover services from registryexistingValue
- existing value that was explicitly configured by the user- Returns:
- an instance, if available in the registry, or if provided by the user (user's value wins)
-