Given a ConfigValue
for the sealed family, disambiguate and extract the ConfigValue
associated to the
implementation for the given class or coproduct option name.
Given a ConfigValue
for the sealed family, disambiguate and extract the ConfigValue
associated to the
implementation for the given class or coproduct option name.
If cv
is a config for the given class name, this method returns Right(Some(v))
, where v
is the config
related to the specific class (possibly the same as cv
). If it determines that cv
is a config for a different
class, it returns Right(None)
. If cv
is missing information for disambiguation or has a wrong type, a
Left
containing a Failure
is returned.
a ConfigCursor
at the sealed family option
the name of the class or coproduct option to try
a Either[ConfigReaderFailure, Option[ConfigValue]]
as defined above.
Given the ConfigValue
for a specific class or coproduct option, encode disambiguation information and return a
config for the sealed family or coproduct.
Given the ConfigValue
for a specific class or coproduct option, encode disambiguation information and return a
config for the sealed family or coproduct.
the ConfigValue
of the class or coproduct option
the name of the class or coproduct option
the config for the sealed family or coproduct wrapped in a Right
, or a Left
with the failure if some error
occurred.
Defines what to do if from
returns Success(Some(_))
for a class or coproduct option, but its ConfigConvert
fails to deserialize the config.
Defines what to do if from
returns Success(Some(_))
for a class or coproduct option, but its ConfigConvert
fails to deserialize the config.
the name of the class or coproduct option
true
if the next class or coproduct option should be tried, false
otherwise.
Hint where all coproduct options are tried in order.
from
will choose the first option able to deserialize the config without errors, whileto
will write the config as is, with no disambiguation information.