final class ConfigResolveOptions extends AnyRef
- Alphabetic
- By Inheritance
- ConfigResolveOptions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val allowUnresolved: Boolean
- def appendResolver(value: ConfigResolver): ConfigResolveOptions
Returns options where the given resolver used as a fallback if a reference cannot be otherwise resolved.
Returns options where the given resolver used as a fallback if a reference cannot be otherwise resolved. This resolver will only be called after resolution has failed to substitute with a value from within the config itself and with any other resolvers that have been appended before this one. Multiple resolvers can be added using,
ConfigResolveOptions options = ConfigResolveOptions.defaults() .appendResolver(primary) .appendResolver(secondary) .appendResolver(tertiary);
With this config unresolved references will first be resolved with the primary resolver, if that fails then the secondary, and finally if that also fails the tertiary.
If all fallbacks fail to return a substitution "allow unresolved" determines whether resolution fails or continues.
- value
the resolver to fall back to
- returns
options that use the given resolver as a fallback
- Since
1.3.2
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def getAllowUnresolved: Boolean
Returns whether the options allow unresolved substitutions.
Returns whether the options allow unresolved substitutions. This method is mostly used by the config lib internally, not by applications.
- returns
true if unresolved substitutions are allowed
- Since
1.2.0
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getResolver: ConfigResolver
Returns the resolver to use as a fallback if a substitution cannot be otherwise resolved.
Returns the resolver to use as a fallback if a substitution cannot be otherwise resolved. Never returns null. This method is mostly used by the config lib internally, not by applications.
- returns
the non-null fallback resolver
- Since
1.3.2
- def getUseSystemEnvironment: Boolean
Returns whether the options enable use of system environment variables.
Returns whether the options enable use of system environment variables. This method is mostly used by the config lib internally, not by applications.
- returns
true if environment variables should be used
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- val resolver: ConfigResolver
- def setAllowUnresolved(value: Boolean): ConfigResolveOptions
Returns options with "allow unresolved" set to the given value.
Returns options with "allow unresolved" set to the given value. By default, unresolved substitutions are an error. If unresolved substitutions are allowed, then a future attempt to use the unresolved value may fail, but Config.resolve(ConfigResolveOptions) itself will not throw.
- value
true to silently ignore unresolved substitutions.
- returns
options with requested setting for whether to allow substitutions
- Since
1.2.0
- def setUseSystemEnvironment(value: Boolean): ConfigResolveOptions
Returns options with use of environment variables set to the given value.
Returns options with use of environment variables set to the given value.
- value
true to resolve substitutions falling back to environment variables.
- returns
options with requested setting for use of environment variables
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val useSystemEnvironment: Boolean
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)