io.eezo.config

package io.eezo.config

Members list

Type members

Classlikes

object Config

Attributes

Companion
trait
Source
Config.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Config.type
trait Config[A]

An application's own configuration, read from application.conf into a case class it declares.

An application's own configuration, read from application.conf into a case class it declares.

The case class and the file are the whole contract. The class says what is read and what may be absent, through its defaults and its Options; the file says where each value comes from, either stated in it or fed from a variable through a substitution. A nested case class that derives Config is a section, read under the field's name, so the class's shape is the file's.

Absence is decided by the case class alone and never by Parser.absent. A form needs that answer, because a browser omits an unchecked checkbox, but a value nobody stated is a deployment that forgot something, so a Boolean nobody set is missing rather than quietly false.

Attributes

Companion
object
Source
Config.scala
Supertypes
class Object
trait Matchable
class Any
trait ConfigApp extends Dispatch

The configuration read every entry trait does before the application starts, and the config command. Users never name this trait: HttpApp and DbApp both extend it, so EezoApp, which stacks the two, holds it once, and help lists config once.

The configuration read every entry trait does before the application starts, and the config command. Users never name this trait: HttpApp and DbApp both extend it, so EezoApp, which stacks the two, holds it once, and help lists config once.

It lives here and not in Dispatch because core cannot see this module. It answers Nil ahead of Dispatch, because a refusal is an exit code the command returns and program returns none, and it leaves program alone, so the stacking refusal Dispatch.program relies on still holds.

The entry object names nothing: the build names the class, the plugin writes the object that holds it, and Config.Root.generated finds that object. A build that names no class reads nothing and starts as it did before this trait existed.

Attributes

Companion
object
Source
ConfigApp.scala
Supertypes
trait Dispatch
class Object
trait Matchable
class Any
Known subtypes
trait DbApp
trait EezoApp
trait HttpApp
trait LiveApp
object ConfigApp

Attributes

Companion
trait
Source
ConfigApp.scala
Supertypes
class Object
trait Matchable
class Any
Self type
ConfigApp.type