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.OverrideDataobjects.The
OverrideSource.OverrideData.datamethod returns aListof pairs, each of which contains aPredicatewhich evaluates the config key and aStringwhich 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
Confignodes that come from aConfigSource. The override mechanism cannot create additionalConfignodes, only modify existing ones.- See Also:
OverrideSource.OverrideData
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classOverrideSource.OverrideDataGroup of config override settings.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default OverrideSourceget()-
Methods inherited from interface io.helidon.config.spi.Source
changes, close, description, load
-
-
-
-
Method Detail
-
get
default OverrideSource get()
- Specified by:
getin interfaceSupplier<OverrideSource>
-
-