DI — Dependency Injection

Oliver Jumpertz
3 min readJan 23, 2022

Dependency injection is a technique in which an object receives other objects it depends on.

It is actually one form of the broader technique inversion of control.

What is it?

Dependency injection is a technique where every other object (service) an object (client) depends on is injected from the outside. So instead of simply instantiating everything on its…

--

--