Is there a way to get an instance if you only have...
# kodein
b
Is there a way to get an instance if you only have a Java or Kotlin class but can't supply a reified type?
s
Yes, you can. Reification is just syntactic sugar, basically a copy&paste done by the compiler. Go to the definition of the
Kodein.instance
function. Then copy and paste its implementation manually into your own code.