- Spring 5 Design Patterns
- Dinesh Rajput
- 146字
- 2021-07-08 09:59:34
Builder design pattern
Separate the construction of a complex object from its representation so that the same construction process can create different representations. - GOF Design Patterns
The Builder design pattern is used to construct a complex object step by step, and finally it will return the complete object. The logic and process of object creation should be generic so that you can use it to create different concrete implementations of the same object type. This pattern simplifies the construction of complex objects and it hides the details of the object's construction from the client caller code. When you are using this pattern, remember you have to build it one step at a time, which means you have to break the object construction login into multiple phases, unlike other patterns, such as the abstract factory and the factory method pattern, which the object in a single step.
推薦閱讀
- Google Apps Script for Beginners
- Python機器學習:數據分析與評分卡建模(微課版)
- 算法精粹:經典計算機科學問題的Java實現
- VMware虛擬化技術
- Building RESTful Python Web Services
- 青少年學Python(第1冊)
- Python極簡講義:一本書入門數據分析與機器學習
- Web前端應用開發技術
- Spring Boot+MVC實戰指南
- Principles of Strategic Data Science
- Java圖像處理:基于OpenCV與JVM
- JSP程序設計實例教程(第2版)
- 微信小程序開發實戰:設計·運營·變現(圖解案例版)
- Python Automation Cookbook
- JBoss AS 7 Development