kodein-jit-bindings / pw.aru.kodein.jit / org.kodein.di.DKodein / jitInstance

jitInstance

fun <T : Any> DKodein.jitInstance(cls: Class<T>): T

Creates a new just-in-time instance of the given class.

Parameters

cls - The type of object to create.

inline fun <reified T : Any> DKodein.jitInstance(): T

Creates a new just-in-time instance of the given class.

Parameters

T - The type of object to create.