Object

eu.akkamo

config

Related Doc: package akkamo

Permalink

object config

Object providing helper functions, data structures and implicit conversions to make the work with Java-based Typesafe Config in Scala world little more convenient.

Example of use:

import eu.akkamo.config._
implicit val config: Config = someConfigInstanceHere

val barValue: String = get[String]("barKey").getOrElse("unknown value")
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 Transformer[T] = (Config, String) ⇒ T

    Permalink

    Typeclass config transformer, allowing to extract value of type T for the given config key and configuration instance.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def blockAsMap(key: String)(implicit cfg: Config): Option[Map[String, Config]]

    Permalink

    Parses the configuration block, identified by its key, to the Scala map.

    Parses the configuration block, identified by its key, to the Scala map.

    key

    configuration block key

    cfg

    configuration to parse

    returns

    parsed map

  6. implicit val cfg2Boolean: Transformer[Boolean]

    Permalink
  7. implicit val cfg2Config: Transformer[Config]

    Permalink
  8. implicit val cfg2ConfigList: Transformer[List[Config]]

    Permalink
  9. implicit val cfg2ConfigMap: Transformer[Map[String, Config]]

    Permalink
  10. implicit val cfg2Double: Transformer[Double]

    Permalink
  11. implicit val cfg2DoubleList: Transformer[List[Double]]

    Permalink
  12. implicit val cfg2Int: Transformer[Int]

    Permalink
  13. implicit val cfg2IntList: Transformer[List[Int]]

    Permalink
  14. implicit val cfg2Long: Transformer[Long]

    Permalink
  15. implicit val cfg2LongList: Transformer[List[Long]]

    Permalink
  16. implicit val cfg2String: Transformer[String]

    Permalink
  17. implicit val cfg2StringList: Transformer[List[String]]

    Permalink
  18. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  21. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def get[T](key: String)(implicit t: Transformer[T], cfg: Config): Option[T]

    Permalink

    This method serves as convenient shorthand of native Typesafe Config Config.getXX methods, as it provides extensible typeclass-based parsing of desired value type and returns result as optional value.

    This method serves as convenient shorthand of native Typesafe Config Config.getXX methods, as it provides extensible typeclass-based parsing of desired value type and returns result as optional value.

    T

    type of requested value

    key

    config key

    t

    configuration value transformer typeclass

    cfg

    configuration instance (implicitly provided)

    returns

    value (if found)

  23. def get[T](key: String, cfg: Config)(implicit t: Transformer[T]): Option[T]

    Permalink

    This method serves as convenient shorthand of native Typesafe Config Config.getXX methods, as it provides extensible typeclass-based parsing of desired value type and returns result as optional value.

    This method serves as convenient shorthand of native Typesafe Config Config.getXX methods, as it provides extensible typeclass-based parsing of desired value type and returns result as optional value.

    T

    type of requested value

    key

    config key

    cfg

    configuration instance

    t

    configuration value transformer typeclass

    returns

    value (if found)

  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped