koin-ktor / org.koin.ktor.ext / io.ktor.application.Application

Extensions for io.ktor.application.Application

get

fun <T : Any> Application.get(qualifier: Qualifier? = null, parameters: ParametersDefinition? = null): T

Retrieve given dependency for KoinComponent

getKoin

fun Application.getKoin(): Koin

Help work on ModuleDefinition

getProperty

fun <T> Application.getProperty(key: String): T?

Retrieve given property for KoinComponent

fun <T> Application.getProperty(key: String, defaultValue: T): T

Retrieve given property for KoinComponent give a default value if property is missing

inject

fun <T : Any> Application.inject(qualifier: Qualifier? = null, parameters: ParametersDefinition? = null): Lazy<T>

inject lazily given dependency