TegralApplicationDsl
DSL interface for configurating Tegral applications.
Inheritors
Functions
Link copied to clipboard
Applies sane defaults to the given application builder. Specifically, this function:
Link copied to clipboard
Adds a feature that will be installed in the application upon build.
Link copied to clipboard
Install the feature onto this application.
Install the feature onto this application, additionally configuring it with the provided lambda.
Link copied to clipboard
Link copied to clipboard
Configures the ConfigLoaderBuilder
used to load application configuration using the given lambda.
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.
Link copied to clipboard
inline fun <T : RootConfig> TegralApplicationDsl.useConfiguration(noinline configuration: ConfigLoaderBuilder.() -> Unit = {})
Equivalent to TegralApplicationDsl.useConfiguration, but uses a reified type instead.