DefaultKey

laika.config.DefaultKey
See theDefaultKey companion object
trait DefaultKey[T]

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 Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def value: Key