io.eezo.config
Members list
Type members
Classlikes
Attributes
- Companion
- trait
- Source
- Config.scala
- Supertypes
- Self type
-
Config.type
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
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
- Known subtypes
Attributes
- Companion
- trait
- Source
- ConfigApp.scala
- Supertypes
- Self type
-
ConfigApp.type