Builder

This is a UML class diagram example for the builder design pattern.

Purpose

Allows for the dynamic creation of objects based upon easily interchangeable algorithms.

Use When

  • Object creation algorithms should be decoupled from the system.
  • Multiple representations of creation algorithms are required.
  • The addition of new creation functionality without changing the core code is necessary.
  • Runtime control over the creation process is required.
Import into your Project

Posted by: Ricardo Poole