Applied Design Patterns with Java

Creational :: Abstract Factory (87) {C ch 5}

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

Also Known As
Kit

Motivation
Different user interface look-and-feels define different appearances and behaviors for user interface "widgets" like scroll bars, windows, and buttons. To be portable across look-and-feel standards, an application should not hard-code its widgets for a particular look and feel.

Solve this problem by defining an abstract WidgetFactory class that declares an interface for creating each basic kind of widget.

Catalog Creational Prev Next