loader

abstract fun <T : Any> loader(clazz: KClass<T>, block: ConfigLoaderBuilder<T>.() -> Unit): ConfigLoader<T>

Creates and loads a configuration for the given class using the provided block.

Return

a fully loaded ConfigLoader instance

Parameters

clazz

the configuration class to load

block

the builder DSL for setting file, parser, logger, etc.