Adapter Pattern 1
Definition Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces
Class Diagram Client Target target Request() Adapter Adaptee adaptee SpecificRequest() // return copy of this
Participants Target Adapter Adaptee Client defines the domain-specific interface that Client uses. Adapter adapts the interface Adaptee to the Target interface. Adaptee defines an existing interface that needs adapting. Client collaborates with objects conforming to the Target interface.
?
References Dofactory – “Adapter” http://www.dofactory.com/net/adapter-design-pattern