Adapter
Section titled “Adapter”An adapter translates between an interface expected by one part of a system and an incompatible interface provided by another.
It contains protocol, provider, or representation differences so the core caller does not depend directly on those details.
An adapter should translate at the boundary rather than leak provider-specific concepts into the domain.
Related knowledge
Adapter patternTranslate one interface into another when useful behavior exists behind an incompatible boundary.
Ports and AdaptersProtect application policy behind explicit ports so external mechanisms remain replaceable implementation details.