- 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.
推薦閱讀
- JavaScript:Functional Programming for JavaScript Developers
- Docker進階與實戰
- Go語言高效編程:原理、可觀測性與優化
- 表哥的Access入門:以Excel視角快速學習數據庫開發(第2版)
- INSTANT Passbook App Development for iOS How-to
- Windows Phone 7.5:Building Location-aware Applications
- 精通Python自動化編程
- Learning Apache Karaf
- Learning Modular Java Programming
- CRYENGINE Game Development Blueprints
- 3D Printing Designs:The Sun Puzzle
- Improving your Penetration Testing Skills
- Qt編程快速入門
- HTML 5與CSS 3權威指南(第4版·上冊)
- PostGIS Cookbook