Inversion of Control – Part II – Dependency Injection

In the first part, I described what Inversion of Control (IoC) is and how it can be implemented using the classical GoF design patterns. In this post, I will explain another implementation of IoC: Dependency Injection. I assume that you are familiar with programming to an interface (or abstract class) rather than classes, as you...

Strategy Design Pattern

Inversion of Control – Part I

Why am I talking about Inversion of Control? I will use Spring (Boot) later on to build services. Spring is based on Dependency Injection. Dependency Injection is one possible implementation of Inversion of Control. Hence, it is reasonable to understand the basics of Inversion of Control (IoC) and how it can be implemented. Before...