Adapter
Intent
Convert the interface of a class into another interface.
Applicability
existing interface doesn’t match
provide reusable abstraction that can work with unrelated classes
decouple objects and make them more reusable
Structure
Client
TargetInterface
operation()
Adaptee
adapteeOperation()
Adapter
operation()
adaptee
Previous slide
Next slide
Back to first slide
View graphic version