ResolutionExtension

ResolutionExtension offers a way to extend Koin capacity to resolve instance in external systems For example it allows to extend Koin to Ktor's internal DI, and make your Koin definition benefits from Ktor DI declared components

Initially extracted from Scope, to help externalise resolution engine and extensions.

Each extension has

  • a name, to help display resolution debugs

  • implement fun resolve(scope : Scope, instanceContext: ResolutionContext)

Author

Arnaud Giuliani

Properties

Link copied to clipboard
abstract val name: String

Extension Name

Functions

Link copied to clipboard
abstract fun resolve(scope: Scope, instanceContext: ResolutionContext): Any?

Resolve function for given scope and ResolutionContext