kodein-jit-bindings / pw.aru.kodein.jit / KodeinJIT / newInstance

newInstance

fun <T : Any> newInstance(kodein: DKodein, 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> newInstance(kodein: DKodein): T

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

Parameters

T - The type of object to create.