public interface OverrideSource extends Source<OverrideSource.OverrideData>, 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 and Description |
|---|---|
static class |
OverrideSource.OverrideData
Group of config override settings.
|
| Modifier and Type | Method and Description |
|---|---|
default OverrideSource |
get() |
changes, close, description, loaddefault OverrideSource get()
get in interface Supplier<OverrideSource>Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.