java.lang.AutoCloseable, Changeable<OverrideSource.OverrideData>, Source<OverrideSource.OverrideData>, java.util.function.Supplier<OverrideSource>AbstractOverrideSourcepublic interface OverrideSource extends Source<OverrideSource.OverrideData>, java.util.function.Supplier<OverrideSource>
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 a List of pairs, each of
which contains a Predicate which evaluates the config key and a
String which is the overriding value to be used if the predicate is
true. The config system applies overrides before it applies
filters, and it applies only the first matching override
it finds.
The config override mechanism affects existing Config nodes that come
from a ConfigSource. The override mechanism cannot create additional
Config nodes, only modify existing ones.
OverrideSource.OverrideData| Modifier and Type | Interface | Description |
|---|---|---|
static class |
OverrideSource.OverrideData |
Group of config override settings.
|
| Modifier and Type | Method | Description |
|---|---|---|
default OverrideSource |
get() |
changes, close, description, loaddefault OverrideSource get()
get in interface java.util.function.Supplier<OverrideSource>Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.