package configz
This package holds a framework for extracting configuration objects out of configuration files, using the Typesafe Config library. Alternative solution: PureConfig
- Alphabetic
- By Inheritance
- configz
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
ConfigurationException(errors: Seq[Throwable]) extends Exception with Product with Serializable
Encapsulates all configuration exceptions that occurred while trying to map the data from a Typesafe Config object onto a case class.
-
trait
Configurator[T] extends Extractor[T]
Implementors of this trait how to construct a class of type T from a Typesafe Config instance.
-
trait
Extractor[T] extends AnyRef
An extractor is a bit of code that knows how to extract a value of type T from a Typesafe {{Config}} instance.
An extractor is a bit of code that knows how to extract a value of type T from a Typesafe {{Config}} instance.
- T
the type that this implementation can extract for us.
-
implicit
class
RichConfig extends AnyRef
Adds the extract method to a Typesafe Config instance, allowing us to request values from it like so: {{config.extract[Double]("double")}} or {{config.extract[Option[Range]]("range")}}
-
implicit final
class
ThrowableOps extends AnyVal
Add a convenience method to convert an Exception to a NonEmptyList[Throwable].
Value Members
- implicit def validationNelToTry[E <: Throwable, T](validation: ValidationNel[E, T]): Try[T]
- object Extractor