The Most Common Mistake When Using Dependency Injection Frameworks

July 5, 2011

I’ve been answering spring and CDI questions on stackoverflow quite a lot, and what I notice as a recurring mistake (or misconception) is that people aren’t aware that they should not instantiate the objects in which they want their dependencies injected. They assume that when they do Foo foo = new Foo(), the dependencies of […]


Contexts and Dependency Injection Presentation

November 3, 2010

I’m uploading the slides and the demos from my presentation about CDI – Contexts and Dependency Injection for the JavaEE platform. Here is the presentation (also available on SlideShare) Here are the demos


Views on CDI and What’s New in JavaEE6

October 17, 2010

In the light of this article which was criticized for not mentioning JavaEE6, I’m going to discuss JavaEE6 innovations. JavaEE 6 is still new – only one application server is certified and ready – Glassfish. JBoss AS is on the way. So, what is new in JavaEE 6: EJB 3.1 – EJB Lite – a […]


On Domain-Driven Design, Anemic Domain Model, Code Generation, Dependency Injection and More…

March 25, 2010

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 something worth. And I’m not here to argue with that. Maybe I’m trying to justify the way I’ve been writing software, or maybe I’m […]