PrefixResourceLoaderPreprocessor

class PrefixResourceLoaderPreprocessor(prefix: String, resourceLoader: ResourceLoader) : 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.

prefix is either CLASSPATH_PREFIX or FILESYSTEM_PREFIX

Constructors

Link copied to clipboard
fun PrefixResourceLoaderPreprocessor(prefix: String, resourceLoader: ResourceLoader = ResourceLoader.SYSTEM)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun handle(node: PrimitiveNode, context: DecoderContext): ConfigResult<Node>
Link copied to clipboard
open override fun process(node: Node, context: DecoderContext): ConfigResult<Node>

Properties

Link copied to clipboard
val prefix: String
Link copied to clipboard
val resourceLoader: ResourceLoader