Bridge
Intent: Decouple an abstraction from its implementation so both can vary independently.
When to use it
- Two dimensions of variation (shape × renderer)
- Avoiding a class explosion
Example
Drawing tools that render to Canvas, SVG or PDF.
Intent: Decouple an abstraction from its implementation so both can vary independently.
Drawing tools that render to Canvas, SVG or PDF.