Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Bridge Design Pattern

This design pattern decouples an abstraction from its implementation so that the two can vary independently.

UML class diagram for Bridge Design Pattern

Design pattern diagram for Bridge Design Pattern

The classes and objects participating in this pattern include:

  • Abstraction (BusinessObject)

    • defines the abstraction's interface.
    • maintains a reference to an object of type Implementor.
  • RefinedAbstraction (CustomersBusinessObject)

    • extends the interface defined by Abstraction.
  • Implementor (DataObject)

    • defines the interface for implementation classes. This interface doesn't have to correspond exactly to Abstraction's interface; in fact the two interfaces can be quite different. Typically the Implementation interface provides only primitive operations, and Abstraction defines higher-level operations based on these primitives.
  • ConcreteImplementor (CustomersDataObject)

    • implements the Implementor interface and defines its concrete implementation.