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
}

By default, parameters like ApplicationEnvironment are resolved automatically.

Report a problem

Types

Link copied to clipboard
object Companion

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.