update image paths
@ -163,7 +163,7 @@ public class Car extends AbstractDocument implements HasModel, HasPrice, HasPart
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/abstract-document/etc/abstract-document.png
Normal file
After Width: | Height: | Size: 94 KiB |
@ -165,7 +165,7 @@ public static void main(String[] args) {
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
## 适用性
|
||||
|
BIN
localization/zh/abstract-factory/etc/abstract-factory.urm.png
Normal file
After Width: | Height: | Size: 80 KiB |
@ -119,4 +119,4 @@ public class Orc extends ActiveCreature {
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
BIN
localization/zh/active-object/etc/active-object.urm.png
Normal file
After Width: | Height: | Size: 19 KiB |
@ -120,7 +120,7 @@ public class ConfigureForUnixVisitor implements ZoomVisitor {
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/acyclic-visitor/etc/acyclic-visitor.png
Normal file
After Width: | Height: | Size: 48 KiB |
@ -91,7 +91,7 @@ captain.row();
|
||||
```
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
|
||||
## 应用
|
||||
|
BIN
localization/zh/adapter/etc/adapter.urm.png
Normal file
After Width: | Height: | Size: 25 KiB |
@ -92,7 +92,7 @@ curl http://localhost:50004/product
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
After Width: | Height: | Size: 40 KiB |
@ -164,7 +164,7 @@ Service result: -1
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/ambassador/etc/ambassador.urm.png
Normal file
After Width: | Height: | Size: 48 KiB |
@ -120,7 +120,7 @@ public class ApiGateway {
|
||||
```
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/api-gateway/etc/api-gateway.png
Normal file
After Width: | Height: | Size: 18 KiB |
@ -139,7 +139,7 @@ public static void main(String[] args) throws Exception {
|
||||
|
||||
# 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
After Width: | Height: | Size: 36 KiB |
@ -108,7 +108,7 @@ public interface DelayProvider {
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/balking/etc/balking.png
Normal file
After Width: | Height: | Size: 21 KiB |
@ -181,7 +181,7 @@ hammer.unwield();
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/bridge/etc/bridge.urm.png
Normal file
After Width: | Height: | Size: 43 KiB |
@ -111,7 +111,7 @@ var mage = new Hero.Builder(Profession.MAGE, "Riobard").withHairColor(HairColor.
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/builder/etc/builder.urm.png
Normal file
After Width: | Height: | Size: 93 KiB |
@ -129,7 +129,7 @@ public class MobileClient {
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 相关模式
|
||||
|
||||
|
BIN
localization/zh/business-delegate/etc/business-delegate.urm.png
Normal file
After Width: | Height: | Size: 49 KiB |
@ -211,7 +211,7 @@ public class VirtualMachine {
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/bytecode/etc/bytecode.urm.png
Normal file
After Width: | Height: | Size: 84 KiB |
@ -11,7 +11,7 @@ tags:
|
||||
为了避免昂贵的资源重新获取,方法是在资源使用后不立即释放资源。资源保留其身份,保留在某些快速访问的存储中,并被重新使用,以避免再次获取它们。
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
在以下情况下使用缓存模式
|
||||
|
BIN
localization/zh/caching/etc/caching.png
Normal file
After Width: | Height: | Size: 112 KiB |
@ -66,7 +66,7 @@ public final class SimpleTask extends Task {
|
||||
task.executeWith(() -> LOGGER.info("I'm done now."));
|
||||
```
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
使用回调模式当
|
||||
|
BIN
localization/zh/callback/etc/callback.png
Normal file
After Width: | Height: | Size: 18 KiB |
@ -136,7 +136,7 @@ king.makeRequest(new Request(RequestType.COLLECT_TAX, "collect tax")); // Orc so
|
||||
```
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
使用责任链模式当
|
||||
|
BIN
localization/zh/chain/etc/chain-of-responsibility.urm.png
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
localization/zh/circuit-breaker/etc/circuit-breaker.urm.png
Normal file
After Width: | Height: | Size: 79 KiB |
@ -27,7 +27,7 @@ tags:
|
||||
|
||||
**示例**
|
||||
|
||||

|
||||

|
||||
|
||||
在这个例子中我们使用AWS S3创建一个静态网站,并利用 AWS Cloudfront 在全球范围内分发内容。
|
||||
|
||||
|
After Width: | Height: | Size: 86 KiB |
@ -11,7 +11,7 @@ tags:
|
||||
在函数式编程中,可以通过一系列较小的模块化函数或操作来编排复杂的操作。这一系列函数被称为函数组合。当一个数据集合流经一个函数组合时,它就成为一个集合管道。函数组合和集合管道是函数式编程中经常使用的两种设计模式。
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用场景
|
||||
在以下场景适用集合管道模式:
|
||||
|
BIN
localization/zh/collection-pipeline/etc/collection-pipeline.png
Normal file
After Width: | Height: | Size: 27 KiB |
@ -219,7 +219,7 @@ goblin.printStatus();
|
||||
```
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
使用命令模式当你想
|
||||
|
BIN
localization/zh/command/etc/command.png
Normal file
After Width: | Height: | Size: 50 KiB |
@ -107,7 +107,7 @@ Arrays.stream(console.getData()).forEach(LOGGER::info);
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用场景
|
||||
|
||||
|
BIN
localization/zh/composite-entity/etc/composite_entity.urm.png
Normal file
After Width: | Height: | Size: 90 KiB |
@ -151,7 +151,7 @@ elfMessage.print(); // Much wind pours from your mouth.
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/composite/etc/composite.urm.png
Normal file
After Width: | Height: | Size: 35 KiB |
@ -83,7 +83,7 @@ var user = userConverter.convertFromDto(dtoUser);
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/converter/etc/converter.png
Normal file
After Width: | Height: | Size: 19 KiB |
@ -146,7 +146,7 @@ customerDao.getAllCustomers(): java.util.stream.ReferencePipeline$Head@6ec8211c
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/dao/etc/dao.png
Normal file
After Width: | Height: | Size: 39 KiB |
@ -11,7 +11,7 @@ tags:
|
||||
数据总线模式(译者:实际上,就是 Event-Bus 消息总线模式)允许在一个应用程序的组件之间收发消息/事件,而不需要这些组件相互感知,它们只需要知道所发送/接收的消息/事件的类型即可。
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用场景
|
||||
可以在以下场景使用数据总线模式:
|
||||
|
BIN
localization/zh/data-bus/etc/data-bus.urm.png
Normal file
After Width: | Height: | Size: 60 KiB |
@ -10,7 +10,7 @@ tags:
|
||||
一个用于在持久化对象和数据库之间传输数据的映射器,同时保持它们之间和映射器本身的独立性。
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用场景
|
||||
数据映射器适用于以下场景:
|
||||
|
BIN
localization/zh/data-mapper/etc/data-mapper.png
Normal file
After Width: | Height: | Size: 39 KiB |
@ -91,7 +91,7 @@ public class CustomerResource {
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
After Width: | Height: | Size: 19 KiB |
@ -103,7 +103,7 @@ clubbedTroll.fleeBattle(); // The troll shrieks in horror and runs away!
|
||||
```
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
使用装饰者
|
||||
|
BIN
localization/zh/decorator/etc/decorator.urm.png
Normal file
After Width: | Height: | Size: 23 KiB |
@ -13,7 +13,7 @@ tags:
|
||||
它是一种让对象将某种行为向外部表达,但实际上将实现该行为的责任委托给关联对象的技术。
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
使用委托模式以实现以下目的
|
||||
|
BIN
localization/zh/delegation/etc/delegation.png
Normal file
After Width: | Height: | Size: 25 KiB |
@ -81,7 +81,7 @@ public class AdvancedWizard implements Wizard {
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
After Width: | Height: | Size: 22 KiB |
@ -14,7 +14,7 @@ tags:
|
||||
避免昂贵资源的重新获取。资源保留其身份,保留在某些快速访问的存储中,并被重新使用以避免再次获取它们。
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
在以下情况下使用脏标志模式
|
||||
|
BIN
localization/zh/dirty-flag/etc/dirty-flag.png
Normal file
After Width: | Height: | Size: 9.0 KiB |
@ -10,7 +10,7 @@ tags:
|
||||
通过先测试锁定标准("锁提示")而不实际获取锁的方式来减少获取锁的开销。只有当锁定标准检查表明需要锁定时,才进行实际的锁定逻辑。
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用场景
|
||||
在以下场景适合使用双重锁检查模式:
|
||||
|
After Width: | Height: | Size: 12 KiB |
@ -186,7 +186,7 @@ facade.endDay();
|
||||
```
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
使用外观模式当
|
||||
|
BIN
localization/zh/facade/etc/facade.urm.png
Normal file
After Width: | Height: | Size: 61 KiB |
@ -10,7 +10,7 @@ tags:
|
||||
使用分离的构建器和工厂接口来定义一个不可变内容的工厂。
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用场景
|
||||
工厂套件模式适用于与以下场景:
|
||||
|
BIN
localization/zh/factory-kit/etc/factory-kit.png
Normal file
After Width: | Height: | Size: 37 KiB |
@ -60,7 +60,7 @@ blacksmith.manufactureWeapon(WeaponType.AXE);
|
||||
```
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
使用工厂方法模式当
|
||||
|
BIN
localization/zh/factory-method/etc/factory-method.urm.png
Normal file
After Width: | Height: | Size: 52 KiB |
@ -106,7 +106,7 @@ This is Ferrari.
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用场景
|
||||
|
||||
|
BIN
localization/zh/factory/etc/factory.urm.png
Normal file
After Width: | Height: | Size: 29 KiB |
@ -10,7 +10,7 @@ tags:
|
||||
给定一种语言,请定义其语法的表示形式,以及使用该表示形式来解释该语言中的句子的解释器。
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
有一种要解释的语言时,请使用解释器模式,并且可以将语言中的语句表示为抽象语法树。解释器模式在以下情况下效果最佳
|
||||
|
BIN
localization/zh/interpreter/etc/interpreter_1.png
Normal file
After Width: | Height: | Size: 45 KiB |
@ -112,7 +112,7 @@ while (itemIterator.hasNext()) {
|
||||
```
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
以下情况使用迭代器模式
|
||||
|
BIN
localization/zh/iterator/etc/iterator_1.png
Normal file
After Width: | Height: | Size: 52 KiB |
@ -126,7 +126,7 @@ public class Weather {
|
||||
```
|
||||
|
||||
## Class diagram
|
||||

|
||||

|
||||
|
||||
## 应用
|
||||
在下面任何一种情况下都可以使用观察者模式
|
||||
|
BIN
localization/zh/observer/etc/observer.png
Normal file
After Width: | Height: | Size: 18 KiB |
@ -117,7 +117,7 @@ immutableStew.mix(); // Mixing the immutable stew we find: 2 potatoes, 4 carrot
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/private-class-data/etc/private-class-data.png
Normal file
After Width: | Height: | Size: 10 KiB |
@ -10,7 +10,7 @@ tags:
|
||||
生产者消费者设计模式是一种经典的并发模式,通过将工作与执行工作任务分开来减少生产者与消费者之间的耦合。
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
在以下情况下使用生产者消费者
|
||||
|
BIN
localization/zh/producer-consumer/etc/producer-consumer.png
Normal file
After Width: | Height: | Size: 26 KiB |
@ -120,7 +120,7 @@ Brown wizard is not allowed to enter!
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/proxy/etc/proxy.urm.png
Normal file
After Width: | Height: | Size: 28 KiB |
@ -13,7 +13,7 @@ tags:
|
||||
一个分片本身就是一个数据存储(它可以包含许多不同类型的实体的数据),运行在作为存储节点的服务器上。
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用场景
|
||||
这种设计模式提供了一下的好处:
|
||||
|
BIN
localization/zh/sharding/etc/sharding.urm.png
Normal file
After Width: | Height: | Size: 62 KiB |
@ -132,7 +132,7 @@ public class Mammoth {
|
||||
```
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/state/etc/state_urm.png
Normal file
After Width: | Height: | Size: 34 KiB |
@ -109,7 +109,7 @@ public class DragonSlayer {
|
||||
```
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 应用
|
||||
使用策略模式当
|
||||
|
BIN
localization/zh/strategy/etc/strategy_urm.png
Normal file
After Width: | Height: | Size: 140 KiB |
@ -116,7 +116,7 @@ public class HalflingThief {
|
||||
```
|
||||
|
||||
## 类图
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/template-method/etc/template_method_urm.png
Normal file
After Width: | Height: | Size: 36 KiB |
@ -128,7 +128,7 @@ Exception: Tried to update stale version 0 while actual version is 1
|
||||
|
||||
## 类图
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/version-number/etc/version-number.urm.png
Normal file
After Width: | Height: | Size: 22 KiB |
@ -198,7 +198,7 @@ Good to see you commander
|
||||
|
||||
## Class diagram
|
||||
|
||||

|
||||

|
||||
|
||||
## 适用性
|
||||
|
||||
|
BIN
localization/zh/visitor/etc/visitor_1.png
Normal file
After Width: | Height: | Size: 46 KiB |