Need for Dependency Injection
- 31st Aug 2014
- 4
- 19079
- when to use dependency injection in spring why do we need dependency injection in spring why do we need dependency injection with real world example why do we need frameworks for dependency injection why should we use dependency injection
Let us understand why do we need Dependency Injection As we all learned that DI is required since it provides loose coupling. Let’s see how this is needed in some scenarios by considering the below requirement Requirement : Client need to open the door, whenever it opens he wants the alarm to be activated,and whenever […]