koin-ktor / org.koin.ktor.ext / io.ktor.routing.Routing

Extensions for io.ktor.routing.Routing

get

fun <T : Any> Routing.get(qualifier: Qualifier? = null, scope: Scope = Scope.GLOBAL, parameters: ParametersDefinition? = null): T

Retrieve given dependency for KoinComponent

getKoin

fun Routing.getKoin(): Koin

Help work on ModuleDefinition

getProperty

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

Retrieve given property for KoinComponent

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

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

inject

fun <T : Any> Routing.inject(qualifier: Qualifier? = null, scope: Scope = Scope.GLOBAL, parameters: ParametersDefinition? = null): Lazy<T>

inject lazily given dependency