Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M6317

Adapter Pattern

Adapter Pattern
SystemsHigh supportSystems Theory
Included
account_tree

Updated 2026-07-30

Loading revision record…

Summary

In software engineering, the adapter pattern is a software design pattern (also known as wrapper, an alternative naming shared with the decorator pattern) that allows the interface of an existing class to be used as another interface. It is often used to make existing classes work with others withou…

Definition

Convert the interface of a class into another interface that clients expect. This allows classes that would otherwise not work together due to incompatible interfaces to work together. Scaffold use: A bridge to the legacy world. When you (a new idea/technology) enter an old system, do not try to forcibly change the old system. Make an 'adapter' (translation layer/compatibility layer), wrapping yourself into a shape the old system can understand, and integrate subtly.

How to use

A bridge to the legacy world. When you (a new idea/technology) enter an old system, do not try to forcibly change the old system. Make an 'adapter' (translation layer/compatibility layer), wrapping yourself into a shape the old system can understand, and integrate subtly.

Mechanism

Convert the interface of a class into another interface that clients expect, enabling incompatible classes to collaborate.

Practice

In progress 0/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Integrating legacy system interfaces with new APIs.

Common pitfalls

  • Overusing adapters may mask deep incompatibilities.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Adapter_patternZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS