janvladimirmostert
07/30/2022, 8:07 PMsingle { Repository(get(named("remote")),get(named("local")))
where is that Repository instance actually stored?
and when I call
val repo : Reposity by inject
where is that instance being pulled from again?
is there any interesting magic happening here or is it literally keeping that instance in something like a hashmap?Stylianos Gakis
07/30/2022, 9:36 PMstartKoin { modules(listOf(myModules…))}
then this is inside InstanceRegistry.
Then to resolve it does this, so in short yeah it seems to be in a safeHashMap
which is of type MutableMap
which implementation is different depending on the actual platform Kotlin is being compiled for, a java.util.concurrent.ConcurrentHashMap for jvm so also Android as I understand.janvladimirmostert
07/30/2022, 10:20 PM