MapApplicationConfig

open class MapApplicationConfig : ApplicationConfig

Mutable application config backed by a hash map

Types

MapApplicationConfigValue

class MapApplicationConfigValue : ApplicationConfigValue

A config value implementation backed by this config’s map

Constructors

<init>

MapApplicationConfig(vararg values: Pair<String, String>)
MapApplicationConfig()

Properties

map

A backing map for this config

path

val path: String

Config path prefix for this config

Functions

config

open fun config(path: String): ApplicationConfig

Get config child node or fail

configList

open fun configList(path: String): List<ApplicationConfig>

Get a list of child nodes for path or fail

property

open fun property(path: String): ApplicationConfigValue

Get config property with path or fail

propertyOrNull

open fun propertyOrNull(
    path: String
): ApplicationConfigValue?

Get config property value for path or return null

put

fun put(path: String, value: String): Unit

Set property value

fun put(path: String, values: Iterable<String>): Unit

Put list property value