Package guru.zoroark.tegral.web.appdsl

Types

Link copied to clipboard
typealias ContextInstallationHook = ExtensibleContextBuilderDsl.() -> Unit
Link copied to clipboard
class TegralApplication(val environment: ExtensibleInjectionEnvironment)

This object represents a built and possibly running Tegral application.

Link copied to clipboard

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.

Link copied to clipboard
interface TegralApplicationDsl : ExtensibleContextBuilderDsl

DSL interface for configurating Tegral applications.

Link copied to clipboard

Builder for a TegralCustomFeature specifically tailored to contain the logic from the tegral block.

Link copied to clipboard
class TegralCustomFeature(    val id: String,     val name: String,     val description: String,     installationCallback: ContextInstallationHook) : Feature

This class allows for the dynamic creation of ad-hoc features.

Functions

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
fun tegral(    enableLoggingOverrides: Boolean = true,     enableDefaults: Boolean = true,     block: TegralApplicationDsl.() -> Unit): TegralApplication

Starting block for creating, configuring and launching a Tegral application. This function:

Link copied to clipboard
inline fun <T : RootConfig> TegralApplicationDsl.useConfiguration(noinline configuration: ConfigLoaderBuilder.() -> Unit = {})

Equivalent to TegralApplicationDsl.useConfiguration, but uses a reified type instead.

Properties

Link copied to clipboard
val TegralApplication.features: Sequence<Feature>

Returns all the features that were installed in this application.

Link copied to clipboard

Returns all the features that additionally implement LifecycleHookedFeature that were installed in this application.