BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

Link 42984 thumbnail
User 111696 avatar

By bloid
via jeremyjarrell.com
Published: Sep 19 2007 / 17:40

Not many people would argue the value of dependency injection, especially when it comes to replacing a live object with a faked object for testing. Although most implementations of this take advantage injecting the faked object into the constructor of the consuming object at instantiation time, did you know that there's another way to easily swap objects in and out using generics?
  • 7
  • 0
  • 1000
  • 2

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (0)