- Spring 5 Design Patterns
- Dinesh Rajput
- 110字
- 2021-07-08 09:59:36
Common requirements for the adapter pattern
The following are the common requirements for this design pattern to addresses the design problems:
- If you are to use this pattern in your application, there is a need to use an existing class with an incompatible interface.
- Another use of this pattern in your application is when you want to create a reusable class that collaborates with classes that have incompatible interfaces.
- There are several existing subclasses to be used, but it's impractical to adapt their interface by sub classing each one. An object adapter can adapt the interface of its parent class.
Let's see how Spring implements the adapter design pattern internally.
推薦閱讀
- SAP BusinessObjects Dashboards 4.1 Cookbook
- Linux:Embedded Development
- SQL基礎(chǔ)教程(第2版)
- Java SE實(shí)踐教程
- Mastering Adobe Captivate 7
- Mastering SciPy
- Python 3快速入門與實(shí)戰(zhàn)
- 可視化H5頁面設(shè)計(jì)與制作:Mugeda標(biāo)準(zhǔn)教程
- C語言程序設(shè)計(jì)實(shí)驗(yàn)指導(dǎo)與習(xí)題精解
- Socket.IO Cookbook
- 數(shù)據(jù)庫技術(shù)及應(yīng)用(Access)(第2版)
- Practical C Programming
- 鋒利的SQL
- ASP.NET程序開發(fā)參考手冊(cè)
- Hadoop實(shí)戰(zhàn)