ModuleParametersInjector
Provides values for application module parameters.
For example, the following module will trigger calls to resolve the parameters param1
and param2
:
fun Application.module(param1: String, param2: List<Int>) {
// contents
}
Content copied to clipboard
By default, parameters like ApplicationEnvironment
are resolved automatically.
Functions
Link copied to clipboard
abstract suspend fun resolveParameter(application: <Error class: unknown class>, parameter: KParameter): Any?
Given the Application instance as context, resolves the expected value of the provided KParameter.