useConfiguration

abstract fun <T : RootConfig> useConfiguration(configClass: KClass<T>, configuration: ConfigLoaderBuilder.() -> Unit = {})

Sets the class to use for loading the configuration classes and optionally applies custom logic to the Hoplite ConfigLoaderBuilder instance.

This class must be a data class that implements RootConfig.

By default, applyDefaults will set this to be TegralConfigurationContainer, which only contains a single tegral: TegralConfig property.


abstract fun useConfiguration(configuration: ConfigLoaderBuilder.() -> Unit)

Configures the ConfigLoaderBuilder used to load application configuration using the given lambda.