Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
CarConditionDetails.java
CarForSale.java
CarForSaleDetailsFactory.java
CarItemForSaleConcreteCreator.java
CarTypeDetails.java
ConditionDetails.java
GuitarConditionDetails.java
GuitarForSale.java
GuitarForSaleDetailsFactory.java
GuitarItemForSaleConcreteCreator.java
GuitarTypeDetails.java
ItemForSale.java
ItemForSaleCreator.java
ItemForSaleDetailsFactory.java
README.md
TestListForSale.java
TypeDetails.java

README.md

DESIGN PATTERN - ABSTRACT FACTORY

TYPE - CREATIONAL

The Abstract Factory pattern

All factory patterns encapsulate object creation.

The Abstract Factory provides an interface for creating families of related or dependent objects without specifying their concrete classes.

Factories are a powerful technique for coding to abstractions, not concrete classes

Examples of the Factory Method Pattern in the JDK include

javax.xml.parsers.DocumentBuilderFactory#newInstance() javax.xml.transform.TransformerFactory#newInstance() javax.xml.xpath.XPathFactory#newInstance()