Skip to main content
Dependency Injection

Also known as

  • Inversion of Control (IoC)
  • Dependency Inversion

Intent

Dependency Injection is a software design pattern in which one or more dependencies (or services) are injected, or passed by reference, into a dependent object (or client) and are made part of the client's state. The pattern separates the creation of a client's dependencies from its own behavior, which allows program designs to be loosely coupled and to follow the Inversion of Control and Single Responsibility principles.


iluwatarAbout 2 minStructuralDecouplingDependency managementInversion of control