CSC/ECE 517 Fall 2010/ch5 5e mf
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.