org.allenai.common.Config

EnhancedConfig

Related Doc: package Config

implicit class EnhancedConfig extends AnyRef

Adds Scala-friendly methods to a com.typesafe.config.Config instance:

Examples:

import org.allenai.common.Config._

val config = ConfigFactory.load()
val requiredConfigValue: String = config[String]("required.key")
val optionalConfigValue: Option[URI] = config.get[URI]("optional.key")
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EnhancedConfig
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EnhancedConfig(config: com.typesafe.config.Config)

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. def apply[T](key: String)(implicit reader: ConfigReader[T]): T

    Required value extraction.

    Required value extraction.

    Exceptions thrown

    com.typesafe.config.ConfigException

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def fromJson[T](key: String)(implicit reader: JsonReader[T]): T

    Required JSON parse.

    Required JSON parse.

    Exceptions thrown

    com.typesafe.config.ConfigException

  11. def get[T](key: String)(implicit reader: ConfigReader[T]): Option[T]

    Optional value extraction.

    Optional value extraction.

    Catches any com.typesafe.config.ConfigException.Missing exceptions and converts to None.

    Exceptions thrown

    com.typesafe.config.ConfigException

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

    Definition Classes
    AnyRef → Any
  13. def getFromJson[T](key: String)(implicit reader: JsonReader[T]): Option[T]

    Optional JSON parse

  14. def getScalaDuration(key: String, timeUnit: TimeUnit): Option[Duration]

  15. def hashCode(): Int

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

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

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  21. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped