O'Reilly logo

Spring Persistence with Hibernate by Ahmad Seddighi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Inversion of Control in Spring

Spring supports IoC at its core. All other features of Spring, such as AOP, the web framework, transaction management, and so on, run on its lightweight IoC container. This means that you are always involved with the Spring IoC, even if you are using another feature of the Spring framework.

Let's continue our discussion with an example application and see how it can be implemented with non-IoC-style code. We'll then apply IoC to the application code to see how Spring's IoC capabilities decouple application classes and solve the dependency problem.

Application definition

Suppose the application uses a class as a notification service to notify the system administrator when a fatal problem occurs inside the system. The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required