August 16, 2009

Dependency Injection Using Language-only Constructs

I’ve been exploring dependency injection in Scala. Digesting this article by Debasish Ghosh, I was inspired to play with the code. At the time of the article’s posting it needed a few pieces to compile. You can find the inferred working source here. As an exploratory exercise, I transposed it to java. Chew on it a bit; it clarified some things for me about both the technique and the workings of Scala abstractions.

blog comments powered by Disqus
10:29pm  |   permalink
FILED UNDER: scala java dependencyinjection ioc