TegralApplicationBuilder
Builder for a Tegral application. This class allows you to install features, tweak the application's configuration, add modules, classes and components of your own, etc. This is the class that is used as a receiver within the tegral block.
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Configures the ConfigLoaderBuilder
used to load application configuration using the given lambda.
open override 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.
Properties
Extensions
Link copied to clipboard
Applies sane defaults to the given application builder. Specifically, this function:
Link copied to clipboard
Install the feature onto this application.
Link copied to clipboard
inline fun <T : RootConfig> TegralApplicationDsl.useConfiguration(noinline configuration: ConfigLoaderBuilder.() -> Unit = {})
Equivalent to TegralApplicationDsl.useConfiguration, but uses a reified type instead.