Home/Tag: IoC

IoC Container, Bean Factory vs Application Context in Spring

In this article, you will learn the differences between IoC Container, Application Context and the Bean Factory in Spring Framework. The Spring IoC container is the core of the Spring Framework. It creates the class instances, wires them together, configures them, and manages their complete life cycle from creation till destruction. The Spring container uses dependency injection (DI) to manage [Read More]

By |2020-04-08T13:07:34+00:00April 5th, 2020|Categories: Spring Framework|Tags: , |

Spring BeanPostProcessor to customize beans

Spring BeanPostProcessor beans are a special kind of beans that get created before any other beans and Spring allows you to assign customize callbacks to it. Spring provides the BeanPostProcessor interface, you can implement its methods to provide your own instantiation logic and dependency resolution logic. NOTE - the following before working with BeanPostProcessor. BeanPostProcessor methods are executed after the [Read More]

By |2020-04-24T18:26:19+00:00February 15th, 2020|Categories: Spring Framework|Tags: , |

Spring bean definition Inheritance

In Spring Framework, bean definition inheritance (bean configuration inheritance) is a valuable time-saving feature we must learn. As you know, a bean definition is nothing but the configuration for the Spring IoC container to create our bean as per the details. Refer to the article Inversion of Control and Dependency Injection in Spring, if you need to understand the basics [Read More]

By |2020-04-24T18:26:06+00:00February 13th, 2020|Categories: Spring Framework|Tags: |

Inversion of Control and Dependency Injection in Spring

Inversion of Control (IoC) and Dependency Injection (DI) are programming patterns for decoupling the Class dependencies. In this article, we will talk about IoC and DI with respect to Spring Framework. Read High Level introduction of Spring Framework if you are new to Spring. 1. What is Inversion of Control (IoC)? For simplicity, let's say class Vehicle is dependent on [Read More]

By |2020-04-24T18:25:29+00:00January 16th, 2020|Categories: Spring Framework|Tags: , , , |