dependency injection

Home/Tag: dependency injection

Mapping and Injecting Collections in Spring

Spring Framework supports the injection of the Java Collection types List, Set, Map and Properties. You can use XML as well as annotations based configurations. We will learn Constructor, Setter, and Field injections for the collections using annotations based configurations in this article. The complete code example is available in the GitHub code repository. I recommend understanding the basics of [...]

By |2020-01-22T08:00:43+00:00January 22nd, 2020|Categories: Java™, 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 |2020-01-08T07:49:28+00:00January 8th, 2020|Categories: Java™, Spring Framework|Tags: , , , |