Abstract Factory

Intent

Provide an interface for creating families of related or dependent objects without specifying their concrete classes.

      -Design Patterns, GoF

 

 

Structure

From dofactory.com:

 

 

Questions

1. When would you want to use a factory method?

2.

 

Examples – Which are Abstract Factories?

1. Core J2EE Design Patterns – Abstract DAO Factory

 

 

References

·         Principles, Patterns, and Practices: The Factory Pattern, Robert C. Martin (Java.net, March 2005) Abstract Factory Design Pattern (DoFactory.com)