I faced a problem with circular dependency in my Scala app. To give you more context, I have the structure below:
trait BTService extends CService with PMService
trait PMService extends CService
trait CService
In BTService I need some functionality from CService and in PMService also. I can see that there is a redundant dependency here (CService) but how can I avoid it?
Aucun commentaire:
Enregistrer un commentaire