We are developing a application using eclipse, spring, ddd and the repository pattern Our current secenario is composed by the following plugins
- Plug-in Domain.project: contains the interface Repository.class.
- Plug-in Repository.project: contains the different implementations of the interface Repository.class, for instance ExampleRepositoryImpl.class. So this plug-in has Domain.project plug-in on its dependencies.
We have created Service.class, in Plug-in Domain.project, which is calling through injection, one of the implementations of Repository implemented on the Plug-in Repository.project. But the injection is not solved properly.
- We are no able to add a dependecy to Repository.project from Domain.project, cause this would throw a redundancy cyclic error.
- Also, since we are following the DDD approach the Domain.project could see the rest but opposite.
Thank you so much, Kind regards,