MapBackedSource
abstract class MapBackedSource(entries: Map<String, String>, origin: String? = null) : ConfigSource(source)
Base ConfigSource backed by an in-memory map with case-insensitive fallback lookup. origin, such as a file path, is added to name so reports tell sources of one type apart: TomlSource(config/app.dev.toml).
Properties
Link copied to clipboard
Further formats tried in order when the key in keyFormat has no value. None by default.
Link copied to clipboard
The key format tried first, e.g. KeyFormat.SCREAMING_SNAKE for environment variables.
Link copied to clipboard
A short label for reports such as ConfigLoader.explain, e.g. TomlSource.