Package-level declarations

Types

Link copied to clipboard

Represents an application config node

Link copied to clipboard

Thrown when an application is misconfigured

Link copied to clipboard

Represents an application config value

Link copied to clipboard
interface ConfigLoader

Loads an application configuration. An implementation of this interface should return ApplicationConfig if applicable configuration is found or null otherwise.

Link copied to clipboard
open class HoconApplicationConfig(config: Config) : ApplicationConfig

Implements ApplicationConfig by loading configuration from HOCON data structures

Link copied to clipboard

Loads a Config from a hocon file.

Link copied to clipboard

Mutable application config backed by a hash map

Functions

Link copied to clipboard
Link copied to clipboard

Returns ApplicationConfig by loading configuration from a resource specified by configPath or a default resource if configPath is null

Link copied to clipboard

Merge configuration combining all their keys. If key is not found in one of the configs, search will continue in the next config in the list.

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

Try read String value from ApplicationConfig.

fun Config.tryGetString(path: String): String?

Returns a string value for path or null if missing

Link copied to clipboard

Try read String value from ApplicationConfig.

fun Config.tryGetStringList(path: String): List<String>?

Returns a list of values for path or null if missing

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.

Properties

Link copied to clipboard

List of all registered ConfigLoader implementations.

List of all registered ConfigLoader implementations.