An open API service indexing awesome lists of open source software.

https://github.com/pierdipi/abstractfactorydesignpattern

Abstract Factory Design Pattern [java & PHP]
https://github.com/pierdipi/abstractfactorydesignpattern

abstract-factory-pattern design-pattern design-pattern-java design-pattern-php design-patterns java php

Last synced: 9 months ago
JSON representation

Abstract Factory Design Pattern [java & PHP]

Awesome Lists containing this project

README

          

# Abstract Factory Design Pattern

Abstract Factory Design Pattern

___

> **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.

___

#### Examples

___

* [Java example (**UI components**)](https://github.com/pierDipi/abstractFactoryDesignPattern/tree/master/abstractFactoryJava)
![UML diagram.](/abstractFactoryJava/uml/abstractFactoryExample.png)

___

* [PHP example (**Books**)](https://github.com/pierDipi/abstractFactoryDesignPattern/tree/master/abstractFactoryPHP).
![UML diagram.](/abstractFactoryPHP/uml/abstractFactoryExample.png)

___

#### You feel free to add your example. :+1:

___