Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Latest commit

 

History

History
10 lines (9 loc) · 271 Bytes

DI.md

File metadata and controls

10 lines (9 loc) · 271 Bytes
aliases
Dependency Injection

DI is just one form of [[IoC|Inversion of Control]], and quite possibly one of the most ubiquitous ones used in object-oriented design

Dependency Injection can be done through

  • constructors
  • setters
  • fields
  • Interface Injection