I am very much confused whether i should use spring
Reason – I want to develop a loosely coupled code which i think can be developed using Factory pattern and interfaces… and dependency injection can be implemented without using spring too…(by passing parameters).. why should i use spring then ?? Which are the other benefits of spring which i am unaware of..It would be really helpful if you could give me code samples comparing spring codes and simple java code(interfaces)…indicating how spring code is better…
Thanks
You must go through Martin fowler’s article http://martinfowler.com/articles/injection.html