Uses of Interface
io.helidon.config.Config
Packages that use Config
Package
Description
Provides interfaces and classes for loading and working with immutable, tree-structured
configuration data.
Configuration SPI that defines the behavior developers can implement to extend the config system.
-
Uses of Config in io.helidon.config
Fields in io.helidon.config with type parameters of type ConfigModifier and TypeFieldDescriptionstatic final GenericType<Config> Config.GENERIC_TYPEGeneric type of configuration.Methods in io.helidon.config that return ConfigModifier and TypeMethodDescriptionConfig.Builder.build()Builds new instance ofConfig.static ConfigMetaConfig.config()Create configuration from meta configuration (files or classpath resources), or create a default config instance if meta configuration is not present.static ConfigCreate configuration from provided meta configuration.static ConfigConfig.create()Returns a new defaultConfigloaded using one of the configuration files available on the classpath and/or using the runtime environment.static ConfigConfig.create(Supplier<? extends ConfigSource>... configSources) Creates a newConfigloaded from environment variables, system properties, and the specifiedConfigSources.Config.detach()Returns a copy of theConfignode with no parent.static ConfigConfig.empty()Returns empty instance ofConfig.Config.get(Config.Key key) Returns the single sub-node for the specified sub-key.default ConfigReturns the single sub-node for the specified sub-key.static ConfigGet a value from config, attempting to read both the keys.static ConfigConfig.global()Deprecated, for removal: This API element is subject to removal in a future version.static ConfigConfig.just(Supplier<? extends ConfigSource>... configSources) Creates a newConfigloaded from the specifiedConfigSources.Config.Context.last()MetaConfig.metaConfiguration()Meta configuration if provided, or empty config if not.Config.Context.reload()Config.root()Methods in io.helidon.config that return types with arguments of type ConfigModifier and TypeMethodDescriptiondefault ConfigValue<Config> Config.asNode()Returns existing current config node asConfigValue.Config.asNodeList()ConfigFilters.ValueResolvingBuilder.build()Creates a function of values reference resolving.ConfigFilters.ValueResolvingBuilder.get()EnumMapperProvider.mappers()MetaConfig.metaConfig()Find meta configuration (files or classpath resources) and create a meta configuration instance from it.Config.traverse()Iterative deepening depth-first traversal of the node and its subtree as aStream<Config>.Iterative deepening depth-first traversal of the node and its subtree as aStream<Config>, qualified by the specified predicate.Methods in io.helidon.config with parameters of type ConfigModifier and TypeMethodDescriptionstatic ChangeWatcher<?> MetaConfig.changeWatcher(Config metaConfig) Load a change watcher based on its meta configuration.protected BConfigure builder from meta configuration.protected BConfigure builder from meta configuration.Configure builder from meta configuration.Update builder from meta configuration.Configure this config builder from meta configuration.Configure builder from meta configuration.Configure builder from meta configuration.Update this builder from meta configuration.static ConfigCreate configuration from provided meta configuration.Update this builder from meta configuration.Configure builder from meta configuration.static List<ConfigSource> MetaConfig.configSource(Config sourceMetaConfig) Load a config source (or config sources) based on its meta configuration.static ClasspathConfigSourceInitializes config source instance from configuration properties.static ClasspathOverrideSourceCreate a new classpath override source from meta configuration, containingresourcekey and other options.Initializes config filter instance from configuration properties.static ConfigSourceReturns aConfigSourcethat contains the same configuration model as the providedconfig.static DirectoryConfigSourceInitializes config source instance from configuration properties.static FileConfigSourceInitializes config source instance from configuration properties.static FileOverrideSourceCreate a new file override source from meta configuration.Initializes polling strategy instance from configuration properties.static PrefixedConfigSourceCreate a prefixed config source from meta configuration.static SimpleRetryPolicyInitializes retry policy instance from configuration properties.static UrlConfigSourceInitializes config source instance from configuration properties.static UrlOverrideSourceCreate a new URL override source from meta configuration.static List<ConfigSource> Create config source for each resource on the classpath.static ConfigGet a value from config, attempting to read both the keys.static voidDeprecated, for removal: This API element is subject to removal in a future version.useServices.set(Class, Object[])to register a static instance for the global service registry; when using a custom service registry instance, set is on the registry configuration buildervoidstatic PollingStrategyMetaConfig.pollingStrategy(Config metaConfig) Load a polling strategy based on its meta configuration.static RetryPolicyMetaConfig.retryPolicy(Config metaConfig) Load a retry policy based on its meta configuration.Transform all leaf nodes (values) into Map instance.static PropertiesConfigMappers.toProperties(Config config) Transform all leaf nodes (values) into Properties instance.Method parameters in io.helidon.config with type arguments of type ConfigModifier and TypeMethodDescriptionConfig.Builder.addFilter(Function<Config, ConfigFilter> configFilterProvider) Config.Builder.addFilter(Supplier<Function<Config, ConfigFilter>> configFilterSupplier) <T> Config.BuilderConfig.Builder.addMapper(GenericType<T> type, Function<Config, T> mapper) Register a mapping function for specifiedGenericType.<T> Config.BuilderRegisters mapping function for specifiedtype.<T> ConfigValue<T> Typed value as aConfigValuecreated from factory method.<T> ConfigValue<List<T>> Returns this node as a list converting each list value using the provided mapper.default voidPerforms the given action with the config node if nodeexists, otherwise does nothing.default voidRegister aConsumerthat is invoked each time a change occurs on whole Config or on a particular Config node.Iterative deepening depth-first traversal of the node and its subtree as aStream<Config>, qualified by the specified predicate. -
Uses of Config in io.helidon.config.spi
Methods in io.helidon.config.spi that return types with arguments of type ConfigModifier and TypeMethodDescriptiondefault Map<GenericType<?>, BiFunction<Config, ConfigMapper, ?>> ConfigMapperProvider.genericTypeMappers()Returns a map of mapper functions associated with appropriate target type (GenericType<?>.default <T> Optional<BiFunction<Config, ConfigMapper, T>> ConfigMapperProvider.mapper(GenericType<T> type) Mapper for a specific generic type.A simple mapping function from config node to a typed value based on the expected class.ConfigMapperProvider.mappers()Returns a map of mapper functions associated with appropriate target type (Class<?>.Methods in io.helidon.config.spi with parameters of type ConfigModifier and TypeMethodDescriptiondefault List<ConfigSource> ConfigSourceProvider.createMulti(String type, Config metaConfig) Create a list of configuration sources from a single configuration.default voidInitializes the filter using theConfiginstance which the filter will affect onceConfig.Builder.buildcompletes.<T> TConfigMapper.map(Config config, GenericType<T> type) Convert the specifiedConfignode into the target type specified byGenericType.<T> TConverts the specifiedConfignode to the target type.
Services.get(Class)instead for static access, inject an instance into your service when creating a service, or use your service registry instance