IT:AD:Patterns:Adapter
Summary
- Used to work around incompatibilities in two libs.
- Often accomplised by wrapping.
- eg: wrapping OtherLib (eg: MailLibrary) within a class of ours (SmtpService), that implements our interface (eg: IMessageService).
Notes
* Has similar traits to IT:AD:Patterns:Adapter
- The difference is that the IT:AD:Patterns:Adapter is usually designed afterwards, to get things to work, whereas the IT:AD:Patterns:Adapter is usually designed beforehand, to allow for future independent change.
* Has similar traits to Facade