Skip to content

Commit

Permalink
Clarify that DI is a type of IoC
Browse files Browse the repository at this point in the history
The documentation currently states that Inversion of Control (IoC) and
Dependency Injection (DI) are the same thing. Although the two terms
are related, they are not synonymous: DI is a type of IoC.

I believe this change is important because using the terms
interchangeably really muddies the water about the meaning of these two
fundamental concepts of software frameworks.

Closes gh-31679
  • Loading branch information
Nijco authored and sbrannen committed Nov 25, 2023
1 parent c2745de commit a56bf87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
= Introduction to the Spring IoC Container and Beans

This chapter covers the Spring Framework implementation of the Inversion of Control
(IoC) principle. IoC is also known as dependency injection (DI). It is a process whereby
(IoC) principle. An important kind of IoC is dependency injection (DI). It is a process whereby
objects define their dependencies (that is, the other objects they work with) only through
constructor arguments, arguments to a factory method, or properties that are set on the
object instance after it is constructed or returned from a factory method. The container
Expand Down

0 comments on commit a56bf87

Please sign in to comment.