The main benefits of IOC or dependency injection are:
It minimizes the amount of code in your application.
It makes your application easy to test as it doesn't require any singletons or JNDI lookup
mechanisms in your unit test cases.
Loose coupling is promoted with minimal effort and least intrusive mechanism.
IOC containers support eager instantiation and lazy loading of services
No comments:
Post a Comment