#
Dependency injection
Dependency injection (DI) is an implementation of the dependency inversion principle with the aim of separation of concerns by separating the depndency’s implementation from the class that’s using it. That kind of abstraction makes it possible to have different implementations with the same public methods so the class using it, doesn’t need to care which of the implementations is used. This is also especially useful for unit testing.
There are different types of dependency injection:
The dependency-injection topic hasn't been used on
any public repositories, yet.
Explore topics
Created by Martin Fowler
Released January 23, 2004
- Followers
- 60 followers
- Website
- github.com/topics/dependency-injection
- Wikipedia
- Wikipedia