The same as specifying required[A] with a default value, but the intent to the use is slightly different.
The same as specifying required[A] with a default value, but the intent to the use is slightly different.
a lazy singleton of the configured class.
a lazy singleton of the configured class. Allows one to pass the Config around to multiple classes without producing multiple configured instances
Looks for any fields that are Required but currently Unspecified, in this object and in any child Config objects, and returns the names of those missing values.
Looks for any fields that are Required but currently Unspecified, in this object and in any child Config objects, and returns the names of those missing values. For missing values in child Config objects, the name is the dot-separated path down to that value.
as of Scala 2.12 the returned values are not always correct.
See ConfigTest
for an example.
a non-lazy way to create a Specified that can be called from java
a non-lazy way to create a Specified that can be called from java
RequiredValuesMissing
if there are any missing values.
Config classes that don't produce anything via an apply() method can extends Config.Nothing, and still get access to the Required classes and methods.