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

getProperty

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

Retrieve given property for KoinComponent

Parameters

key -

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

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

Parameters

key -

defaultValue -