Hi there, is it possible to list/iterate all declared instances of a koin instance?
e
El Zhang
01/06/2021, 4:22 AM
one possible but heavy way is:
1. using agp byte code transform + asm to inject some code to koin constructor
2. for example a static method call and pass Koin instance as param, thus u can collect all instance and may be cached in a weakhashmap
h
holgerbrandl
01/12/2021, 9:46 PM
Thanks @El Zhang. Indeed this sounds pretty heavy.