Package io.helidon.config.spi
Configuration SPI that defines the behavior developers can implement to extend the config system.
The most likely developer-implemented extension points:
| Interface | Purpose |
|---|---|
ConfigSource |
Loads configuration data from a type of source. |
ConfigParser |
Converts configuration data into a ConfigNode.ObjectNode. |
ConfigFilter |
Filters configuration values after they have been read from a
ConfigSource but before they are used in building a
Config tree. |
ConfigMapperProvider |
Converts Config nodes or subtrees to Java types. See
ConfigMappers for the built-in mappers. |
OverrideSource |
Replaces values pf config nodes whose keys match specified conditions with alternative values. |
PollingStrategy |
Notifies interested code when the data underlying a Source might
have changed. |
RetryPolicy |
Controls if and how a Source attempts to retry failed attempts to
load the underlying data. |
- See Also:
Configuration API
-
Interface Summary Interface Description Changeable<T> Interface used to mark changeable source.ConfigContext Context created by aConfig.Builderas it constructs aConfig.ConfigFilter Filter that can transform elementary configuration (String) values before they are returned via theConfigAPI.ConfigMapper Config mapper is provided toConfigMapperProviderto help transformation of complex structures.ConfigMapperProvider Provides mapping functions that convert aConfigsubtree to specific Java types.ConfigNode Marker interface identifying a config node implementation.ConfigNode.ListNode ConfigNode-based list of configuration values.ConfigNode.ListNode.Builder Builder to buildConfigNode.ListNodeinstance.ConfigNode.ObjectNode Configuration node representing a hierarchical structure parsed by a suitableConfigParserif necessary.ConfigNode.ObjectNode.Builder Builder to buildConfigNode.ObjectNodeinstance.ConfigNode.ValueNode Single string-based configuration value.ConfigParser Transforms configConfigParser.Contentinto aConfigNode.ObjectNodethat represents the original structure and values from the content.ConfigParser.Content<S> ConfigSource Sourceof configuration.OverrideSource Source of config override settings.PollingStrategy Mechanism for notifying interested subscribers when they should check for changes that might have been made to the data used to create aConfigtree, as accessed throughConfigSources.PollingStrategy.PollingEvent Event indicating that data used in constructing a givenConfigtree might have changed.RetryPolicy Mechanism for controlling retry of attempts to load data by anAbstractSource.Source<T> Source of the specified type<T>of data. -
Class Summary Class Description AbstractConfigSource<S> Base abstract implementation ofConfigSource, suitable for concrete implementations to extend.AbstractConfigSource.Builder<B extends AbstractConfigSource.Builder<B,T>,T> A commonConfigSourcebuilder ready to be extended by builder implementation related toConfigSourceextensions.AbstractOverrideSource<S> Base abstract implementation ofOverrideSource, suitable for concrete implementations to extend.AbstractOverrideSource.Builder<B extends AbstractOverrideSource.Builder<B,T>,T> A commonOverrideSourcebuilder ready to be extended by builder implementation related toOverrideSourceextensions.AbstractParsableConfigSource<S> Abstract implementation ofConfigSourcethat uses aConfigParserto parseconfiguration contentaccessible as aReadable.AbstractParsableConfigSource.Builder<B extends AbstractParsableConfigSource.Builder<B,T>,T> CommonAbstractParsableConfigSourceBuilder, suitable for concrete implementations of Builder that are related toConfigSources which extendAbstractParsableConfigSourceAbstractSource<T,S> Abstract base implementation for a variety of sources.AbstractSource.Builder<B extends AbstractSource.Builder<B,T,S>,T,S> A commonAbstractSourcebuilder, suitable for concreteBuilderimplementations related toAbstractSourceextensions to extend.AbstractSource.Data<D,S> Data loaded at appropriate time.OverrideSource.OverrideData Group of config override settings. -
Enum Summary Enum Description ConfigNode.NodeType Base types of config nodes. -
Exception Summary Exception Description ConfigParserException Root class for exceptions thrown during config parsing.