MVP with CDI; avoiding circular dependency

后端 未结 4 1718
别那么骄傲
别那么骄傲 2021-01-12 02:03

I try to build a Webapp with the MVP paradigm. Because I want the API to be clean and make everything easy testable I try to inject everything possible via Contructor Inject

4条回答
  •  粉色の甜心
    2021-01-12 02:26

    There's some approaches to solve circular dependency, but when this kind of exception is thrown note that could be something wrong with your architecture.

    But consider see this answer

提交回复
热议问题