Brain Dump

Abstract Factory Pattern

Tags
soft-eng

Is a software design pattern where components that are dependent upon each other are encapsulated and accessed through a factory class. The classical example for the factory pattern is Swings pluggable UI where functions for drawing a scroll-bar, window, and other components is encapsulated in a theme factory which can be passed to the renderer.

This pattern provides generic creation of objects [see page 24, indicating] generic behaviour.