instantiateType

open fun instantiateType(type: Class<out Any>): T

Instantiate the given class, injecting constructor arguments as necessary.

Return

an instantiated instance

Since

3.4.0

Parameters

type

the type to instantiate