Skip to main content

Adapters


Reference · Adapters

Reference purpose — Create provider seams that preserve framework lifecycle while isolating vendor protocol and credentials.
Adapters with narrow capabilities, explicit cleanup, and replaceable test doubles.

Key concepts

Capability

Small interface

Lifecycle

Open and close

Failure

Translated category

Reference model

Contract summary

Interpretation

An adapter is valuable when it makes provider choice reversible without weakening the application contract.
Reference note The best adapter is boring at the call site and precise at the boundary.

Implementation notes

Decision lens

References

Last modified on September 10, 2026