How does one handle the following usecase(manual a...
# koin
a
How does one handle the following usecase(manual as of now) via koin?
Copy code
class F1 : F{
val b = DepB()

val a = DepA(b)
val c = DepC(b)
}

class F2 : F{
val b = DepB()

val a = DepA(b)
val c = DepC(b)
}
Basically I want factory instances for all except within a particular
F<x>
class(i.e F1 or F2) I wish that DepB instance needs to be shared. I want to be able to do this at a super class
F
level instead of defining the same scope over and over again for each of the subclasses
F1
and
F2
.
a
did you tried delegate injection in a common class?
a
I haven’t, Could you elaborate a bit more?