Scala Cake Pattern and Dependency Collisions

前端 未结 5 2685
情深已故
情深已故 2021-02-20 05:08

I\'m trying to implement dependency injection in Scala with the Cake Pattern, but am running into dependency collisions. Since I could not find a detailed example with such depe

5条回答
  •  情书的邮戳
    2021-02-20 05:25

    Instead of extending FooApiModule and BarApiModule in a single place -- which would mean they share dependencies -- make them both separate objects, each with their dependencies solved accordingly.

提交回复
热议问题