Gal Levinsky: Judgement day weapon for circular autowiring dependency error
On recent post I demonstrated a way to resolve circular dependency error.However, sometimes, even the mentioned solution is not enough and redesign is not possible.
I would like to suggest a solution of Dependency Injection which will be as much loyal as possible to the Spring IoC way and will help to overcome the circular dependency error.
This means that we will have a single class that will have a reference to all the classes which need to be injected and will be responsible for the injection.
Read full article from Gal Levinsky: Judgement day weapon for circular autowiring dependency error
No comments:
Post a Comment