-
- All Superinterfaces:
ConfigSource,Source,Supplier<ConfigSource>
- All Known Implementing Classes:
ConfigSources.SystemPropertiesConfigSource,DirectoryConfigSource,MapConfigSource,PrefixedConfigSource
public interface NodeConfigSource extends ConfigSource
An eager source that can read all data from the underlying origin as a configuration node.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.config.spi.Source
Source.Builder<B extends Source.Builder<B>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<ConfigContent.NodeContent>load()Loads the underlying source data.-
Methods inherited from interface io.helidon.config.spi.ConfigSource
get, init
-
Methods inherited from interface io.helidon.config.spi.Source
description, exists, optional, retryPolicy
-
-
-
-
Method Detail
-
load
Optional<ConfigContent.NodeContent> load() throws ConfigException
Loads the underlying source data. This method is only called when the sourceSource.exists().The method can be invoked repeatedly, for example during retries.
- Returns:
- An instance of
Tas read from the underlying origin of the data (if it exists) - Throws:
ConfigException- in case of errors loading from the underlying origin
-
-