TegralApplicationDsl

interface TegralApplicationDsl : ExtensibleContextBuilderDsl

DSL interface for configurating Tegral applications.

Functions

Link copied to clipboard
abstract fun install(featureBuilder: Buildable<Feature>)

Adds a feature that will be installed in the application upon build.

Link copied to clipboard
abstract fun meta(action: ContextBuilderDsl.() -> Unit)
Link copied to clipboard
abstract fun <T : Any> put(declaration: Declaration<T>)
Link copied to clipboard
abstract fun useConfiguration(configuration: ConfigLoaderBuilder.() -> Unit)

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.

Properties

Link copied to clipboard
abstract val configSources: MutableList<ConfigSource>

List of all the Hoplite configuration sources that will be used to load this application.

Inheritors

Link copied to clipboard

Extensions

Link copied to clipboard
fun TegralApplicationDsl.applyDefaults()

Applies sane defaults to the given application builder. Specifically, this function:

Link copied to clipboard
fun TegralApplicationDsl.install(feature: Feature)

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.