Chapter 2. Inversion of Control in Spring
In this chapter, we'll explore the concept of Inversion of Control (IoC). We'll then explore Spring Core Container, BeanFactory
, and ApplicationContext
, and you will learn how to implement them. We will take a look at
Dependency Injection (DI) in Spring and their types: setter and constructor. We will wire beans using setter- and constructor-based Dependency Injection for different data types. We will also go through bean definition inheritance in Spring. We will then see autowiring in Spring and their modes. We will also see Spring bean's scope and its implementation. Then, we will move on to the life cycle of Spring bean.
The following is a list of topics that will be covered in this chapter:
- Understanding ...
Get Spring: Developing Java Applications for the Enterprise 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.