Skip to content

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.