Hello!
I'm reading about design pattern adaptor in the GOF book and
there is something that sounds strange.
The text below each participant is the book explanation for each
participant.
I understand the book explanation for Target and Client.
But I don't understand the book explanation for Adaptee and Adaptor see
below.
Can somebody explain what the book is trying to say for the Adaptee
participant´?
Can somebody explain what the book is trying to say for the Adaptor
participant is?
So my only two questions is what does these two rows means. That is all?
Adaptee = defines an existing interface that needs adapting
Adaptor = adapts the interface of Adaptee to the Target interface
When you use the adaptor design pattern you have these five participants.
*Target
- defines the domain-specific interface that Client uses.
* Client
- collaborates with objects conforming to the Target interface.
*Adaptee
- defines an existing interface that needs adapting.
*Adaptor
- adapts the interface of Adaptee to the Target interface
//Tony
I'm reading about design pattern adaptor in the GOF book and
there is something that sounds strange.
The text below each participant is the book explanation for each
participant.
I understand the book explanation for Target and Client.
But I don't understand the book explanation for Adaptee and Adaptor see
below.
Can somebody explain what the book is trying to say for the Adaptee
participant´?
Can somebody explain what the book is trying to say for the Adaptor
participant is?
So my only two questions is what does these two rows means. That is all?
Adaptee = defines an existing interface that needs adapting
Adaptor = adapts the interface of Adaptee to the Target interface
When you use the adaptor design pattern you have these five participants.
*Target
- defines the domain-specific interface that Client uses.
* Client
- collaborates with objects conforming to the Target interface.
*Adaptee
- defines an existing interface that needs adapting.
*Adaptor
- adapts the interface of Adaptee to the Target interface
//Tony