- 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.
推薦閱讀
- INSTANT MinGW Starter
- 老“碼”識途
- 軟件項目管理實用教程
- Java EE 8 Application Development
- Yii Project Blueprints
- Illustrator CC平面設(shè)計實戰(zhàn)從入門到精通(視頻自學(xué)全彩版)
- FFmpeg開發(fā)實戰(zhàn):從零基礎(chǔ)到短視頻上線
- WildFly Cookbook
- JavaScript Concurrency
- Java 9:Building Robust Modular Applications
- 多接入邊緣計算實戰(zhàn)
- Python程序設(shè)計
- Implementing NetScaler VPX?(Second Edition)
- Microsoft Azure Security
- HTML 5與CSS 3權(quán)威指南(第4版·上冊)