Packages

  • package root
    Definition Classes
    root
  • package classy
    Definition Classes
    root
  • package config

    Provides support for Typesafe Config/Shocon Config.

    Provides support for Typesafe Config/Shocon Config.

    Available with the "classy-config-typesafe" and "classy-config-shocon" modules. These modules and their dependencies share the same classpath and cannot be used simultaneously.

    Usage

    Read instances are available with a wildcard import:

    import classy.config._

    This enables automatically derived decoders with classy.generic as well as manual decoders:

    // decode a String from a Config at path "foo"
    val decodeFoo = readConfig[String]("foo")
    
    // decode a List[Int] from a Config path "bar"
    val decodeBar = readConfig[List[Int]]("bar")
    Definition Classes
    classy
  • ConfigDecoder
  • ConfigDecoderOps
  • ConfigDecoders
  • ReadConfig
p

classy

config

package config

Provides support for Typesafe Config/Shocon Config.

Available with the "classy-config-typesafe" and "classy-config-shocon" modules. These modules and their dependencies share the same classpath and cannot be used simultaneously.

Usage

Read instances are available with a wildcard import:

import classy.config._

This enables automatically derived decoders with classy.generic as well as manual decoders:

// decode a String from a Config at path "foo"
val decodeFoo = readConfig[String]("foo")

// decode a List[Int] from a Config path "bar"
val decodeBar = readConfig[List[Int]]("bar")
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. config
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type ConfigDecoder[A] = Decoder[Config, A]
  2. implicit final class ConfigDecoderOps [A] extends AnyVal
  3. type ReadConfig[A] = Read[Config, A]

Value Members

  1. implicit val defaultConfigReadBoolean: Read[Config, Boolean]
  2. implicit val defaultConfigReadBooleanList: Read[Config, List[Boolean]]
  3. implicit val defaultConfigReadConfig: Read[Config, Config]
  4. implicit val defaultConfigReadConfigList: Read[Config, List[Config]]
  5. implicit val defaultConfigReadDouble: Read[Config, Double]
  6. implicit val defaultConfigReadDoubleList: Read[Config, List[Double]]
  7. implicit val defaultConfigReadFiniteDuration: Read[Config, FiniteDuration]
  8. implicit val defaultConfigReadInt: Read[Config, Int]
  9. implicit val defaultConfigReadIntList: Read[Config, List[Int]]
  10. implicit val defaultConfigReadLong: Read[Config, Long]
  11. implicit val defaultConfigReadLongList: Read[Config, List[Long]]
  12. implicit val defaultConfigReadString: Read[Config, String]
  13. implicit val defaultConfigReadStringList: Read[Config, List[String]]
  14. def readConfig[A](path: String)(implicit read: ReadConfig[A]): ConfigDecoder[A]
  15. object ConfigDecoder extends Serializable
  16. object ConfigDecoders
  17. object ReadConfig extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped