DefaultKey

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.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def value: Key