kodein-jit-bindings / org.kodein.di.jit / KodeinJIT / newInstance

newInstance

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

Creates a new instance of the given class.

Parameters

cls - The type of object to create.

inline fun <reified T : Any> newInstance(): T

Creates a new instance of the given type.

Parameters

T - The type of object to create.