KtorExtension

class KtorExtension(scope: InjectionScope) : DeclarationsProcessor

The Ktor extension object that is injected into the meta-environment. Keeps track of implementations of KtorModule subclasses (incl. KtorController subclasses) within the main environment.

Constructors

Link copied to clipboard
fun KtorExtension(scope: InjectionScope)

Functions

Link copied to clipboard
fun getModulesForAppName(appName: String?): List<KtorModule>

Returns modules available in the environment for the given application name.

Link copied to clipboard
open override fun processDeclarations(sequence: Sequence<Declaration<*>>)