Trait/Object

dagr.core.config

Configuration

Related Docs: object Configuration | package config

Permalink

trait Configuration extends ConfigurationLike

The trait to be mixed in to access configuration

Linear Supertypes
ConfigurationLike, LazyLogging, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Configuration
  2. ConfigurationLike
  3. LazyLogging
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Configuration to any2stringadd[Configuration] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Configuration, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Configuration to ArrowAssoc[Configuration] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  7. def asType[T](path: String)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): T

    Permalink

    Converts the configuration path to the given type.

    Converts the configuration path to the given type. If the requested type is not supported, an exception is thrown. Override this method to support custom types.

    Attributes
    protected
    Definition Classes
    ConfigurationLike
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def commandLineName: String

    Permalink
    Definition Classes
    ConfigurationLike
  10. def config: Config

    Permalink

    Grabs a reference to the global configuration at creation time.

    Grabs a reference to the global configuration at creation time.

    Attributes
    protected
    Definition Classes
    Configuration → ConfigurationLike
  11. def configure[T](path: String, defaultValue: T)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): T

    Permalink

    Looks up a value in the configuration, and if present returns it, otherwise returns the default value provided.

    Looks up a value in the configuration, and if present returns it, otherwise returns the default value provided.

    Definition Classes
    ConfigurationLike
  12. def configure[T](path: String)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): T

    Permalink

    Looks up a single value of a specific type in configuration.

    Looks up a single value of a specific type in configuration. If the configuration key does not exist, an exception is thrown. If the requested type is not supported, an exception is thrown.

    Definition Classes
    ConfigurationLike
  13. def configureExecutable(path: String, executable: String): Path

    Permalink

    Attempts to determine the path to an executable, first by looking it up in config, and if that fails, by attempting to locate it on the system path.

    Attempts to determine the path to an executable, first by looking it up in config, and if that fails, by attempting to locate it on the system path. If both fail then an exception is raised.

    path

    the configuration path to look up

    executable

    the default name of the executable

    returns

    An absolute path to the executable to use

    Definition Classes
    ConfigurationLike
  14. def configureExecutableFromBinDirectory(binPath: String, executable: String, subDir: Option[Path] = None): Path

    Permalink

    Attempts to determine the path to an executable.

    Attempts to determine the path to an executable.

    The config path is assumed to be the directory containing the executable. If the config lookup fails, then we attempt to locate it on the system path. If both fail then an exception is raised. No validation is performed that the executable actually exists at the returned path.

    binPath

    the configuration path to look up, representing the directory containing the executable

    executable

    the default name of the executable

    subDir

    optionally a sub-directory within the bin-directory containing the executable.

    returns

    An absolute path to the executable to use

    Definition Classes
    ConfigurationLike
  15. def ensuring(cond: (Configuration) ⇒ Boolean, msg: ⇒ Any): Configuration

    Permalink
    Implicit information
    This member is added by an implicit conversion from Configuration to Ensuring[Configuration] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (Configuration) ⇒ Boolean): Configuration

    Permalink
    Implicit information
    This member is added by an implicit conversion from Configuration to Ensuring[Configuration] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: ⇒ Any): Configuration

    Permalink
    Implicit information
    This member is added by an implicit conversion from Configuration to Ensuring[Configuration] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): Configuration

    Permalink
    Implicit information
    This member is added by an implicit conversion from Configuration to Ensuring[Configuration] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  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 formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Configuration to StringFormat[Configuration] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  23. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  26. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  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. def optionallyConfigure[T](path: String)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Option[T]

    Permalink

    Optionally accesses a configuration value.

    Optionally accesses a configuration value. If the value is not present in the configuration a None will be returned, else a Some(T) of the appropriate type.

    Definition Classes
    ConfigurationLike
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def systemPath: Seq[Path]

    Permalink

    Grabs the config key "PATH" which, if not defined in config will default to the environment variable PATH, splits it on the path separator and returns it as a Seq[String]

    Grabs the config key "PATH" which, if not defined in config will default to the environment variable PATH, splits it on the path separator and returns it as a Seq[String]

    Attributes
    protected
    Definition Classes
    ConfigurationLike
  33. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def [B](y: B): (Configuration, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Configuration to ArrowAssoc[Configuration] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from ConfigurationLike

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Configuration to any2stringadd[Configuration]

Inherited by implicit conversion StringFormat from Configuration to StringFormat[Configuration]

Inherited by implicit conversion Ensuring from Configuration to Ensuring[Configuration]

Inherited by implicit conversion ArrowAssoc from Configuration to ArrowAssoc[Configuration]

Ungrouped