Package-level declarations

Types

Link copied to clipboard
data class ConfigSource @JvmOverloads constructor(val configLocation: String, val format: String = "yml")

Config location and format (default yaml). The location should be in a format that ResourceLoader understands.

Link copied to clipboard
interface Configurable<T : Config>
Link copied to clipboard
class PrefixResourceLoaderPreprocessor @JvmOverloads constructor(val prefix: String, val resourceLoader: ResourceLoader = ResourceLoader.SYSTEM) : TraversingPrimitivePreprocessor

Preprocessor for a config node. If the node is a StringNode and the value starts with the prefix, then the node value is treated as a resource location. This is loaded using the resourceLoader and returned as a StringNode.

Link copied to clipboard
object WispConfig

WispConfig is a wrapper around the Hoplite config library: https://github.com/sksamuel/hoplite

Functions

Link copied to clipboard
fun ConfigLoaderBuilder.addWispConfigSources(configSources: List<ConfigSource>, resourceLoader: ResourceLoader = ResourceLoader.SYSTEM): ConfigLoaderBuilder

Add the config sources in the order supplied. If the config source location does not exist it is silently skipped, i.e. the config locations are optional.