Placement of Abstract Factories

added by Ricardo Peres
12/25/2014 11:44:10 AM

1 Kicks, 172 Views

Where should you define an Abstract Factory? Where should you implement it? Not where you'd think. An Abstract Factory is one of the workhorses of Dependency Injection, although it's a somewhat blunt instrument. As I've described in chapter 6 of my book, whenever you need to map a run-time value to an abstraction, you can use an Abstract Factory.