CSC/ECE 517 Fall 2010/ch5 5e mf: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
=The Dependency Injection Pattern=
=The Dependency Injection Pattern=


The dependency injection pattern is a design pattern for fully decoupling one class from the instantiation another class on which it depends.  In this sense, it is similar to the factory and service locator patterns.
The dependency injection pattern is a design pattern for fully decoupling one class from the instantiation of another class on which it depends.  In this sense, it is similar to the factory and service locator patterns.

Revision as of 12:05, 3 November 2010

The Dependency Injection Pattern

The dependency injection pattern is a design pattern for fully decoupling one class from the instantiation of another class on which it depends. In this sense, it is similar to the factory and service locator patterns.