loader
abstract fun <T : Any> loader(clazz: Class<T>, builder: Consumer<ConfigLoaderBuilder<T>>): ConfigLoader<T>
Creates and loads a configuration for the given class using a builder consumer.
Return
a fully loaded ConfigLoader instance
Parameters
clazz
the class representing the configuration type
builder
a consumer to configure the ConfigLoaderBuilder