mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 22:58:36 +00:00
8c316e75fe
* translation for step-builder and table-module and unit-of-work and update-method and value-object to Chinese * fix a translation error
title, category, language, tag
| title | category | language | tag | |
|---|---|---|---|---|
| Step Builder | Creational | zn |
|
又被称为
分步构建
目的
这是构建者模式的一个扩展,完全指导用户创建对象,没有混淆的机会。 用户体验会大大提升,因为他只能看到下一个步骤的方法,直到适当的时机才会出现构建对象的“build”方法。
类图
应用
使用分布构建模式当创建复杂对象的算法需要独立于组成对象的部分以及它们的组装方式,且构造过程必须允许对象有不同的表示形式,并且在此过程中顺序很重要时。
