[koin-annotations] Is it possible declare which is...
# koin
p
[koin-annotations] Is it possible declare which is specified module to a dependency? Something like:
Copy code
@Factory(belongs = VehiclesModule::class)
class Car: Vehicle
👀 2
d
maybe by doing something like this
Copy code
@Module
class VehiclesModule(){
    @Factory
    fun provideCar() = Car()
}
Then include that module in your
AppModule
p
It works as well, @Deep Patel. But my idea is have classes in
:feature-a
implementing an interface from
:common
. The advantage is get a list of all dependencies in
:common
, like
val myList: List<InterfaceX>
. --:common (interface) --:feature-a (implementation A) --:feature-b (implementation B) --:app
a
is it a visibility problem? would you have several definition of the same type?
p
A several definitions of same type.
a