Tag: dependency injection

In this article, we’ll to learn how to implement the service locator Design Pattern in Spring. We’ll begin with a brief introduction. Next, we’ll introduce an example that benefits from using the pattern. And finally, we’ll work through an implementation in Spring. Introduction: Service Locator Pattern When we begin working with the Spring framework, we run […]Continue reading

At the heart of the Spring Framework is its support of dependency injection through its Inversion of Control container. In this video, I look at using some of the advanced autowire features of Spring. @Primary By default, Spring will autowire by type. When you have more than one Spring Bean of a given type, you can […]Continue reading

Polyglot Programming Is the practice of programming in multiple programming languages. According to Wikipedia it is – In computing, a polyglot is a computer program or script written in a valid form of multiple programming languages, which performs the same operations or output independent of the programming language used to compile or interpret it. In […]Continue reading

Dependency Injection The Spring Framework is literally built around the concept of Dependency Injection. In this post, we’ll take a look at a simple example of Dependency Injection using the Spring Framework. If you want a deeper dive on Dependency Injection and how it works in conjunction with Inversion of Control in the Spring Framework, sign […]Continue reading