Manning.com / Dhanji R. Prasanna on DI ~ Don't Call Us - We'll Call You

Wednesday, February 11, 2009

Manning.com / Dhanji R. Prasanna on DI

Dhanji R. Prasanna

In a traditional object-oriented application, a primary program controls secondary pieces of code, such as classes in a module, library, or framework. Dependency Injection (DI) is a technique that inverts this control, using an external mechanism to insert—or inject—a reference to an implementation of a service into an object. This allows you to build complex OO applications in a more testable, maintainable, and business-focused manner.

No comments:

Post a Comment