Inversion of Control

In every Java application, the first important thing that each developer does is to get an object that they can use in the application. The state of an object can be obtained at runtime, or it may be at compile time. However, developers create objects where they use the boilerplate code a number of times. When the same developer uses Spring instead of creating an object by themselves, they will be dependent on the framework to obtain the object. The term Inversion of Control (IoC) comes as Spring container inverts the responsibility of object creation from developers.

The Spring IoC container is just a terminology; the Spring Framework provides the following two containers:

  • BeanFactory
  • ApplicationContext
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.61.142