Dependency Injection
-
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 » -
Enterprise Java
Spring 3: Type safe dependency injection
Before jumping to Type Safe Dependency Injection from Spring, I would like to to discuss the way we have been…
Read More » -
Scala
DI in Scala: Cake Pattern pros & cons
I’ve been looking at alternatives for java-style DI and DI containers which would use pure Scala; a promising candidate is…
Read More » -
Enterprise Java
Rich Domain Model with Guice
The anaemic domain model is a really common anti-pattern. In the world of ORM & DI frameworks we naturally seem…
Read More »