Chapter 3. Introducing Inversion of Control
In Chapter 1, during the first discussion of Inversion of Control (IoC), you might recall that we mentioned that Martin Fowler renamed the Inversion of Control pattern to the more descriptive dependency injection (DI). However, this is not strictly true; in reality, DI is a specialized form of IoC, although you will often find that the two terms are used interchangeably. In this chapter, we take a much more detailed look at IoC and DI, formalizing the relationship between the two concepts and looking in great detail at how Spring fits into the picture.
After defining both and looking at Spring's relationship with them, we will explore the concepts that are essential to Spring's implementation of DI. This ...
Get Pro Spring 2.5 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.