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

jitInstance

fun <T : Any> Kodein.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> Kodein.jitInstance(): T

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

Parameters

T - The type of object to create.