Dependency Injection
-
Software Development
In today’s post-OO world, is dependency injection still relevant?
It’s 2015. Most of the new popular languages are more or less functional. The old ones, like Java, gain functional…
Read More » -
Core Java
Dependency Injection – Field vs Constructor vs Method
Hi, today I would like to discuss in short different ways of injecting dependencies into your classes. In general you have…
Read More » -
Enterprise Java
Dependency injection pitfalls in Spring
There are three injection variants in Spring framework: Setter-based injection Constructor-based injection Field-based injection Each of those mechanisms has advantages and…
Read More » -
Enterprise Java
Injecting domain objects instead of infrastructure components
Dependency Injection is a widely used software design pattern in Java (and many other programming languages) that is used to…
Read More » -
Enterprise Java
DI Containers are Code Polluters
While dependency injection (aka, “DI”) is a natural technique of composing objects in OOP (known long before the term was…
Read More » -
Enterprise Java
Dependency Injection Options for Java
I wanted to take some time to put together a summary of some popular dependency injection (DI) frameworks for Java.…
Read More » -
Scala
Dependency injection with Scala macros: auto-wiring
You can look at dependency injection as a fancy name for passing parameters to a function (or constructor arguments to…
Read More » -
Enterprise Java
How I explained Dependency Injection to My Team
Recently our company started developing a new java based web application and after some evaluation process we decided to use…
Read More » -
Enterprise Java
Spring vs Guice: The one critical difference that matters
Spring objects are recognized based on their names It doesn’t matter whether you use XML or Java config, a Spring…
Read More »