Dependency Injection and Object Composition put to practice
Note: this entry has moved.
Last week I presented this topic in Zurich, based on p&p ObjectBuilder. It's amazing how much interest people show around this topic, yet there is so little available on the web about ObjectBuilder.
The project has been open sourced for a while now, but the
lack of good documentation and a full DI container hindered
its adoption. First thing I hear on these conferences is
that it's too low-level, and that higher level APIs are
needed.
I believe that's what will happen in the
short-term. ObjectBuilder is a very good tool to apply
simple dependency injection and object composition
functionality in your app, without taking huge dependencies.
For the most part, you can make it work even without using
custom attributes and the like.
You can
get the slides
(PowerPoint 2007), and
download the sample project
that compares the usage against standard hardcoded
dependencies and even Pico and Spring.