Dependency injection is a technique that separates behavior from dependency resolution. Various frameworks have emerged for that purpose, but for small projects, using them might be an overkill. Check out the tutorial on how to perform DI manually.
-
Dependency Injection - The manual way (1 messages)
- Posted by: Fabrizio Chami
- Posted on: December 21 2010 02:28 EST
Threaded Messages (1)
- Dependency Injection - The manual way by Eric Weise on December 21 2010 11:57 EST
-
Dependency Injection - The manual way[ Go to top ]
- Posted by: Eric Weise
- Posted on: December 21 2010 11:57 EST
- in response to Fabrizio Chami
If you're using scala try the cake pattern. Its delicious http://jonasboner.com/2008/10/06/real-world-scala-dependency-injection-di.html