ApplicationConfig

Represents an application config node

Inheritors

Properties

Link copied to clipboard

The host address of the currently running application, as defined by the configuration at start-up.

Link copied to clipboard

The port the current application is running on, as defined by the configuration at start-up.

Functions

Link copied to clipboard
abstract fun config(path: String): ApplicationConfig

Get config child node or fail

Link copied to clipboard
abstract fun configList(path: String): List<ApplicationConfig>

Get a list of child nodes for path or fail

Link copied to clipboard
abstract fun keys(): Set<String>

Returns the set of keys, found by recursing the root object. All entries represent leaf nodes' keys, meaning that there would be no nested objects directly included as values for returned keys. It's still possible that entries may be a list and the lists may contain objects.

Link copied to clipboard

Merge configuration combining all their keys. If the key exists in this and other config, the value from the other config will be used.

Link copied to clipboard

Get config property with path or fail

Link copied to clipboard

Get config property value for path or return null

Link copied to clipboard
abstract fun toMap(): Map<String, Any?>

Returns map representation of this config. Values can be String, Map<String, Any>, List<String> and List<Map<String, Any>>

Link copied to clipboard

Try read String value from ApplicationConfig.

Link copied to clipboard

Try read String value from ApplicationConfig.

Link copied to clipboard

Merge configuration combining all their keys. If the key exists in this and other config, the value from this config will be used.