List/Grid Tag Archives: Dependency Injection

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 a constructor). However usually, DI containers do much more than ...

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 Spring.But many of the team members are not aware of ...

Spring vs Guice: The one critical difference that matters
Spring objects are recognized based on their namesIt doesn’t matter whether you use XML or Java config, a Spring scope is roughly like a Map<String, Object> structure. ...

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 doing it earlier. We have been using dependency injection by type with ...

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 the Cake Pattern (see my earlier blog post for information ...

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 to find ourselves with an ORM-managed “domain” that is all data ...

On DTOs
DTOs, or data-transfer objects, are commonly used. What is not s? commonly-known is that they originate from DDD (Domain-driven design). There it makes a lot of sense – domain objects ...

On domain-driven design, anemic domain models, code generation, dependency injection and more…
Eric Evans has formulated what domain-driven design (DDD) is. Martin Fowler is a great supporter and advocate of DDD. These are remarkable names and it is almost certain they are supporting ...

The evolution of Spring dependency injection techniques
Looking back at the history of Spring framework you will find out that the number of ways you can implement dependency injection is growing in every release. If you’ve been working ...

Android Dependency Injection and Testing Libraries
Anything and everything that makes life easier to develop for Android should be looked into. There are a couple of libraries that make testing easier, increase the modularity of your ...

