TegralApplication

class TegralApplication(val environment: ExtensibleInjectionEnvironment)

This object represents a built and possibly running Tegral application.

You can interact with this application by starting or stopping it, inspecting and retrieving elements from its DI environment, etc.

Constructors

Link copied to clipboard
fun TegralApplication(environment: ExtensibleInjectionEnvironment)

Functions

Link copied to clipboard
suspend fun start()

Starts this application with all its components.

Link copied to clipboard
suspend fun stop()

Stops this application with all its components.

Properties

Link copied to clipboard
val environment: ExtensibleInjectionEnvironment

The dependency injection environment used in this application. All components of this application live here (either directly or via the meta-environment).

Extensions

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.