Software Engineering Architecture Lab

Adapter Pattern

Make an incompatible interface look like the one you expect. A structural pattern in the Design Patterns (GoF) catalog. With Java/Spring code.

Make an incompatible interface look like the one you expect.

Family
Design Patterns (GoF)
Category
Structural
Source
Gamma, Helm, Johnson, Vlissides · Head First Design Patterns

More structural patterns

  • Decorator — Wrap an object to add behaviour without changing it.
  • Facade — Offer one simple entry point to a complicated subsystem.
  • Proxy — A stand-in that controls access: lazy, caching, remote or security.
  • Composite — Treat single items and groups of items the same way.
  • Bridge — Separate an abstraction from its implementation so both can vary.

All patterns