- properly categorize all patterns - remove pattern list from readme - minor fixes to readme - removed "introduction" because its not a pattern and an error i committed some time ago
957 B
957 B
layout, title, folder, permalink, categories, tags
layout | title | folder | permalink | categories | tags |
---|---|---|---|---|---|
pattern | Abstract Factory | abstract-factory | /patterns/abstract-factory/ | Creational | Java |
Intent: Provide an interface for creating families of related or dependent objects without specifying their concrete classes.
Applicability: Use the Abstract Factory pattern when
- a system should be independent of how its products are created, composed and represented
- a system should be configured with one of multiple families of products
- a family of related product objects is designed to be used together, and you need to enforce this constraint
- you want to provide a class library of products, and you want to reveal just their interfaces, not their implementations
Real world examples: