- 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.
推薦閱讀
- 企業級Java EE架構設計精深實踐
- Full-Stack Vue.js 2 and Laravel 5
- Kinect for Windows SDK Programming Guide
- FLL+WRO樂高機器人競賽教程:機械、巡線與PID
- Python完全自學教程
- 數據結構習題解析與實驗指導
- PySide 6/PyQt 6快速開發與實戰
- C語言從入門到精通
- Hands-On Kubernetes on Windows
- OpenCV Android Programming By Example
- C語言程序設計
- C++17 By Example
- Mastering PostgreSQL 11(Second Edition)
- Swift 2 Blueprints
- HTML5 and CSS3:Building Responsive Websites