Dependency Injection

Turkish equivalent: Bağımlılık enjeksiyonuDomain: Software Engineering

A design technique in which an object receives its collaborators from outside instead of constructing or globally locating them itself.

Dependency Direction

Dependency injection separates object construction from object behavior. A component declares what it needs, while another part of the application decides which concrete implementation supplies that dependency.

Constructor injection makes required dependencies explicit and usually keeps the object usable without a framework-specific global lookup.

What DI Does Not Solve

DI does not automatically produce a modular architecture. A class can still depend on too many services, leak infrastructure concerns or form cyclic dependencies.

It is one implementation technique commonly used with Inversion of Control and the dependency direction discussed in Change-Resilient Architecture with SOLID.

Related technical publications

Publications whose title or summary directly references this concept.

Spring Boot

Advanced Spring Boot notes for the Spring Boot 4 and Spring Framework 7 generation, covering auto-configuration, dependency injection, MVC/REST, Jakarta Persistence, transactions, security, testing, HTTP clients, virtual threads, observability, Native Image, and production reliability.