Using Dependency Injection is almost a standard when developing software. However, in many cases it may seem that using the pattern implicates using a DI container/framework. But is a framework … Continue Reading →
Category 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 … Continue Reading →
After Confitura 2011
Confitura 2011 went past very quickly, it was a great conference and a great occasion to meet with the polish Java community on the SPOINA after-party. During the conference I … Continue Reading →
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 … Continue Reading →
Ruby on Rails + CDI/Weld on Torquebox example app
For almost a year we’ve been successfully using Torquebox together with CDI/Weld as a base for two of our services: JBison and Circular. As we’ll be doing some presentations together … Continue Reading →
Dependency Injection in Scala: Extending the Cake Pattern
Continuing the mini-series on Dependency Injection (see my previous blogs: problems with DI, assisted inject for CDI and improving assisted inject), I took a look at how DI is handled … Continue Reading →
Improving autofactories/assisted inject
In my two previous posts I wrote about some problems with DI and a solution to part of those problems: assisted inject (as known in Guice)/autofactories (my implementation for CDI). … Continue Reading →
DI and OO: Assisted Inject in CDI / Weld
My last post sparked quite a lot of interest – thanks for all the comments both on the blog and on dzone! Some of them rightly pointed out that the … Continue Reading →
Dependency injection discourages object-oriented programming?
Suppose you have a Product entity and that you want to implement a method which sends the product to a customer (let’s call it ship). For that method to work, … Continue Reading →
Ruby on Rails + CDI? Why not! Enter TorqueBox + Weld
I guess many people are often “unsatisfied” with how JSF works and how much time it sometimes takes to do a simple thing. That’s why we are trying out a … Continue Reading →