IoC Containers in Spring Bean Factory vs Application Context

In this article, you will learn the differences between IoC Containers in Spring, namely 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 [...]

By |2024-04-02T11:05:21+00:00April 5th, 2020|Categories: Spring Framework|Tags: , |

Spring Beans Customization by Leveraging BeanPostProcessor

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 [...]

By |2024-04-01T19:01:47+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 [...]

By |2024-04-01T18:38:22+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 [...]

By |2024-04-01T13:29:17+00:00January 16th, 2020|Categories: Spring Framework|Tags: , , , |
Go to Top