- 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.
推薦閱讀
- ASP.NET Core:Cloud-ready,Enterprise Web Application Development
- Clojure Programming Cookbook
- Spring Cloud Alibaba微服務(wù)架構(gòu)設(shè)計(jì)與開(kāi)發(fā)實(shí)戰(zhàn)
- Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API
- Android底層接口與驅(qū)動(dòng)開(kāi)發(fā)技術(shù)詳解
- 全棧自動(dòng)化測(cè)試實(shí)戰(zhàn):基于TestNG、HttpClient、Selenium和Appium
- Visual C++開(kāi)發(fā)入行真功夫
- Mastering Linux Security and Hardening
- Citrix XenServer企業(yè)運(yùn)維實(shí)戰(zhàn)
- MySQL程序員面試筆試寶典
- SQL Server 2016 從入門到實(shí)戰(zhàn)(視頻教學(xué)版)
- PHP+MySQL動(dòng)態(tài)網(wǎng)站開(kāi)發(fā)從入門到精通(視頻教學(xué)版)
- C# 7 and .NET Core 2.0 Blueprints
- 生成藝術(shù):Processing視覺(jué)創(chuàng)意入門
- Machine Learning with R Cookbook