Package wisp. config
Types
Link copied to clipboard
data class ConfigSource @JvmOverloads constructor(configLocation: String, format: String)
Content copied to clipboard
Config location and format (default yaml). The location should be in a format that ResourceLoader understands.
Link copied to clipboard
Link copied to clipboard
class PrefixResourceLoaderPreprocessor @JvmOverloads constructor(prefix: String, resourceLoader: ResourceLoader) : TraversingPrimitivePreprocessor
Content copied to clipboard
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
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
Content copied to clipboard
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.