Closed andrasferenczi closed 6 years ago
I just realized calling allInstances()
is the same as allInstances(tag=null)
so it returns only the empty tags. Is there a way to return all tags for a specific binding?
No there's not.
However, you can explore all bindings and their information by accessing kodein.container.bindings
.
Is allInstances available for kodein.js?
Is allInstances available for kodein.js?
I join this question. It is completely unclear what is happening with allInstances
in the multiplatform
. What is in the picture is all that is in the official documentation for allInstances
.
allInstances
replacement proposals for the multiplatform
.
First off, thank you for the great library.
I am going through a couple examples and I cannot seem to get
allInstances
to work.Why does
Kodein
always give an empty list to theallInstances()
call?Please look at this example:
I know binding
List<X>
will probably be not found due to type erasure, it is just a test.This prints out:
I expected this to return
Y
andZ
at least, since no factory arguments are provided.Sorry for asking this obvious question, the example in the wiki did not provide a full example.
Thank you.