Possible Duplicate:
Understanding the need for a DI framework
I have read several ariticles and talked to several professionals regarding DI. What I Dont understand is the point that how to DI decouples the objects. The following article also describes a scenario but I dont understand how does Spring help in decouplling PayrollApplication? Decoupling is done with polymorphism rather than DI. DI definelty serves some other purpose...
http://www.developer.com/java/dependency-injection-in-existing-java-code.html
Hints and refrences will do. Thanks