public interface ConfigResolver
ConfigResolveOptions.appendResolver()
to provide custom behavior when unresolved substitutions are encountered
during resolution.Modifier and Type | Method and Description |
---|---|
ConfigValue |
lookup(java.lang.String path)
Returns the value to substitute for the given unresolved path.
|
ConfigResolver |
withFallback(ConfigResolver fallback)
Returns a new resolver that falls back to the given resolver if this
one doesn't provide a substitution itself.
|
lookup(java.lang.String path)
ConfigUtil.splitPath(String)
. If a
non-null value is returned that value will be substituted, otherwise
resolution will continue to consider the substitution as still
unresolved.path
- the unresolved pathwithFallback(ConfigResolver fallback)
fallback
- the previous includer for chaining