- 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.
推薦閱讀
- Learning Single:page Web Application Development
- WildFly:New Features
- JMeter 性能測(cè)試實(shí)戰(zhàn)(第2版)
- Practical Data Science Cookbook(Second Edition)
- HTML5 Mobile Development Cookbook
- Python從入門到精通(精粹版)
- Java項(xiàng)目實(shí)戰(zhàn)精編
- Building Serverless Applications with Python
- Corona SDK Mobile Game Development:Beginner's Guide(Second Edition)
- Swift 4 Protocol-Oriented Programming(Third Edition)
- LabVIEW虛擬儀器入門與測(cè)控應(yīng)用100例
- 并行編程方法與優(yōu)化實(shí)踐
- 工業(yè)機(jī)器人離線編程
- Delphi開發(fā)典型模塊大全(修訂版)
- Akka入門與實(shí)踐