- 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.
推薦閱讀
- C++面向對象程序設計(第三版)
- Learning Scala Programming
- SoapUI Cookbook
- Photoshop智能手機APP UI設計之道
- Building a Home Security System with Raspberry Pi
- C語言程序設計實踐教程
- INSTANT Passbook App Development for iOS How-to
- OpenCV 4計算機視覺項目實戰(原書第2版)
- Python Interviews
- Scratch·愛編程的藝術家
- Training Systems Using Python Statistical Modeling
- PyQt編程快速上手
- SFML Game Development
- Android應用程序設計
- Elastix Unified Communications Server Cookbook