Adapter
Intent
,
Motivation
,
Applicability
,
Structure
, Participants,
Collaborations
,
Consequences
,
Implementation
,
Sample Code
,
Known Uses
,
Related Patterns
Participants
Target
(Shape)
defines the domain-specific interface that Client uses.
Client
(DrawingEditor)
collaborates with objects conforming to the Target interface.
Adaptee
(TextView)
defines an existing interface that needs adapting.
Adapter
(TextShape)
adapts the interface of Adaptee to the Target interface.
Participants of
Abstract Factory
, Adapter,
Bridge
,
Builder
,
Chain of Responsibility
,
Command
,
Composite
,
Decorator
,
Facade
,
Factory Method
,
Flyweight
,
Interpreter
,
Iterator
,
Mediator
,
Memento
,
Observer
,
Prototype
,
Proxy
,
Singleton
,
State
,
Strategy
,
Template Method
,
Visitor