Interface OverrideSource
-
- All Superinterfaces:
AutoCloseable
,Changeable<OverrideSource.OverrideData>
,Source<OverrideSource.OverrideData>
,Supplier<OverrideSource>
- All Known Implementing Classes:
AbstractOverrideSource
public interface OverrideSource extends Source<OverrideSource.OverrideData>, Supplier<OverrideSource>
Source of config override settings.A config override setting provides an alternate, or overriding, value for a config element based on the element's key. Implementations of this interface furnish override settings as
OverrideSource.OverrideData
objects.The
OverrideSource.OverrideData.data
method returns aList
of pairs, each of which contains aPredicate
which evaluates the config key and aString
which is the overriding value to be used if the predicate istrue
. The config system applies overrides before it appliesfilters
, and it applies only the first matching override it finds.The config override mechanism affects existing
Config
nodes that come from aConfigSource
. The override mechanism cannot create additionalConfig
nodes, only modify existing ones.- See Also:
OverrideSource.OverrideData
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
OverrideSource.OverrideData
Group of config override settings.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default OverrideSource
get()
-
Methods inherited from interface io.helidon.config.spi.Source
changes, close, description, load
-
-
-
-
Method Detail
-
get
default OverrideSource get()
- Specified by:
get
in interfaceSupplier<OverrideSource>
-
-