laika.config.DefaultKey
See theDefaultKey companion object
A defaultKey can be used for commonly used configuration objects like AutonumberConfig
that are expected to be mapped to a specific key, like autonumbering
without requiring the user to remember these keys.
val config: Config = ???
val res: ConfigResult[AutonumberConfig] = config.get[AutonumberConfig]
In the example above retrieval happens solely based on the type of the result with the associated key being specified by an implicit DefaultKey
.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article