Intent • "Provide an interface for creating families of related or dependent objects without specifying their concrete classes." • provide a simple creational interface for a complex family of classes • Client does not have to know any of those details. • avoid naming concrete classes • Clients use abstract creational interfaces and abstract product interfaces. Concrete classes can be changed without affecting clients. • Clients can stay blissfully unaware of implementation details • This is critically important! Why is this so important? Operations: CreateProdA() CreateProcB() AbstractFactory Operations: CreateProdA() CreateProcB()
CITATION STYLE
Hunt, J. (2013). Abstract Factory Pattern. In Scala Design Patterns (pp. 155–161). Springer International Publishing. https://doi.org/10.1007/978-3-319-02192-8_19
Mendeley helps you to discover research relevant for your work.