Chapter 4. Inversion of Control

As noted in the previous chapter, Spring is a modular POJO framework that provides more than 130 packages for supporting Web and enterprise application development. At its core, Spring is a container that can manage the entire life cycle of your application objects. In this chapter, I will begin to delve into this core—the Inversion of Control (IoC) container and the Dependency Injection (DI) design pattern.

The container implements the DI pattern that allows you to keep the dependencies between different objects dynamic. For example, you can have an object that needs a reference to another object or to an external resource like a mail server. In our user manager application, the UserServiceImpl class has a reference ...

Get Beginning Java™ and Flex: Migrating Java, Spring, Hibernate, and Maven Developers to Adobe Flex 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.