I've seen dependency injection used in choosing an implementation for
an interface with a configuration file i.e. without having to modify
the code.

I've only seen it used in component frameworks with lifecycle (a
lifetime ago with Jakarta Avalon and now with Spring.)

Currently we're using it in a web service environment, simply to
inject SQL queries into our database classes so we can modify the
queries without recompiling everything.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to