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

KodeinJIT

class KodeinJIT

Injector that allows to build objects just-in-time.

Functions

newInstance

fun <T : Any> newInstance(cls: Class<T>): T

Creates a new instance of the given class.

fun <T : Any> newInstance(): T

Creates a new instance of the given type.

Companion Object Functions

of

fun of(kodein: Kodein): KodeinJIT
fun of(kodein: DKodein): KodeinJIT

Utility function that eases the retrieval of a KodeinJIT.