DependencyReflection

Provides reflection to dependency injection so that it may create new instances from class references.

Report a problem

Inheritors

Functions

Link copied to clipboard
abstract suspend fun <T : Any> create(kClass: KClass<T>, init: suspend (DependencyKey) -> Any): T

Creates a new instance of the specified class using the provided initialization logic.