On Tue, Oct 21, 2008 at 4:08 PM, Kit Plummer <[EMAIL PROTECTED]> wrote:

> The latest OSGi spin Spring is spinning is a little gross.  Why do I need
> to "buy" their 8x8 block when I can go down the street to Apache and get a
> Felix 2x2 block?  But, anyway...
>

Why use a DI "Framework" at all when you can probably get everything you
need (at least in the early iterations) with a homegrown Registry pattern in
a single file?  Like this, for example:

http://geminstaller.rubyforge.org/svn/trunk/lib/geminstaller/registry.rb

Yeah, hackish and primitive, but definitely the simplest thing that worked -
and allowed me to avoid a DI "framework' and have NO library dependencies in
this utility.

-- Chad

Reply via email to