update image paths

This commit is contained in:
Ilkka Seppälä
2021-10-31 20:00:22 +02:00
parent fd915161ee
commit 4d54781f79
99 changed files with 48 additions and 48 deletions

View File

@ -163,7 +163,7 @@ public class Car extends AbstractDocument implements HasModel, HasPrice, HasPart
## 类图
![alt text](../../../abstract-document/etc/abstract-document.png "Abstract Document Traits and Domain")
![alt text](etc/abstract-document.png "Abstract Document Traits and Domain")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

View File

@ -165,7 +165,7 @@ public static void main(String[] args) {
## 类图
![alt text](../../../abstract-factory/etc/abstract-factory.urm.png "Abstract Factory class diagram")
![alt text](etc/abstract-factory.urm.png "Abstract Factory class diagram")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View File

@ -119,4 +119,4 @@ public class Orc extends ActiveCreature {
## 类图
![alt text](../../../active-object/etc/active-object.urm.png "Active Object class diagram")
![alt text](etc/active-object.urm.png "Active Object class diagram")

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -120,7 +120,7 @@ public class ConfigureForUnixVisitor implements ZoomVisitor {
## 类图
![alt text](../../../acyclic-visitor/etc/acyclic-visitor.png "Acyclic Visitor")
![alt text](etc/acyclic-visitor.png "Acyclic Visitor")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -91,7 +91,7 @@ captain.row();
```
## 类图
![alt text](../../../adapter/etc/adapter.urm.png "Adapter class diagram")
![alt text](etc/adapter.urm.png "Adapter class diagram")
## 应用

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -92,7 +92,7 @@ curl http://localhost:50004/product
## 类图
![alt text](../../../aggregator-microservices/aggregator-service/etc/aggregator-service.png "Aggregator Microservice")
![alt text](etc/aggregator-service.png "Aggregator Microservice")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -164,7 +164,7 @@ Service result: -1
## 类图
![alt text](../../../ambassador/etc/ambassador.urm.png "Ambassador class diagram")
![alt text](etc/ambassador.urm.png "Ambassador class diagram")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@ -120,7 +120,7 @@ public class ApiGateway {
```
## 类图
![alt text](../../../api-gateway/etc/api-gateway.png "API Gateway")
![alt text](etc/api-gateway.png "API Gateway")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -139,7 +139,7 @@ public static void main(String[] args) throws Exception {
# 类图
![alt text](../../../async-method-invocation/etc/async-method-invocation.png "Async Method Invocation")
![alt text](etc/async-method-invocation.png "Async Method Invocation")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -108,7 +108,7 @@ public interface DelayProvider {
## 类图
![alt text](../../../balking/etc/balking.png "Balking")
![alt text](etc/balking.png "Balking")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -181,7 +181,7 @@ hammer.unwield();
## 类图
![alt text](../../../bridge/etc/bridge.urm.png "Bridge class diagram")
![alt text](etc/bridge.urm.png "Bridge class diagram")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -111,7 +111,7 @@ var mage = new Hero.Builder(Profession.MAGE, "Riobard").withHairColor(HairColor.
## 类图
![alt text](../../../builder/etc/builder.urm.png "Builder class diagram")
![alt text](etc/builder.urm.png "Builder class diagram")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -129,7 +129,7 @@ public class MobileClient {
## 类图
![alt text](../../../business-delegate/etc/business-delegate.urm.png "Business Delegate")
![alt text](etc/business-delegate.urm.png "Business Delegate")
## 相关模式

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@ -211,7 +211,7 @@ public class VirtualMachine {
## 类图
![alt text](../../../bytecode/etc/bytecode.urm.png "Bytecode class diagram")
![alt text](etc/bytecode.urm.png "Bytecode class diagram")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

View File

@ -11,7 +11,7 @@ tags:
为了避免昂贵的资源重新获取,方法是在资源使用后不立即释放资源。资源保留其身份,保留在某些快速访问的存储中,并被重新使用,以避免再次获取它们。
## 类图
![alt text](../../../caching/etc/caching.png "Caching")
![alt text](etc/caching.png "Caching")
## 适用性
在以下情况下使用缓存模式

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

View File

@ -66,7 +66,7 @@ public final class SimpleTask extends Task {
task.executeWith(() -> LOGGER.info("I'm done now."));
```
## 类图
![alt text](../../../callback/etc/callback.png "Callback")
![alt text](etc/callback.png "Callback")
## 适用性
使用回调模式当

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -136,7 +136,7 @@ king.makeRequest(new Request(RequestType.COLLECT_TAX, "collect tax")); // Orc so
```
## 类图
![alt text](../../../chain-of-responsibility/etc/chain-of-responsibility.urm.png "Chain of Responsibility class diagram")
![alt text](etc/chain-of-responsibility.urm.png "Chain of Responsibility class diagram")
## 适用性
使用责任链模式当

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

View File

@ -27,7 +27,7 @@ tags:
**示例**
![alt text](../../../cloud-static-content-hosting/etc/static-content-hosting.png "Static Content Hosting")
![alt text](etc/static-content-hosting.png "Static Content Hosting")
在这个例子中我们使用AWS S3创建一个静态网站并利用 AWS Cloudfront 在全球范围内分发内容。

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

View File

@ -11,7 +11,7 @@ tags:
在函数式编程中,可以通过一系列较小的模块化函数或操作来编排复杂的操作。这一系列函数被称为函数组合。当一个数据集合流经一个函数组合时,它就成为一个集合管道。函数组合和集合管道是函数式编程中经常使用的两种设计模式。
## 类图
![alt text](../../../collection-pipeline/etc/collection-pipeline.png "Collection Pipeline")
![alt text](etc/collection-pipeline.png "Collection Pipeline")
## 适用场景
在以下场景适用集合管道模式:

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -219,7 +219,7 @@ goblin.printStatus();
```
## 类图
![alt text](../../../command/etc/command.png "Command")
![alt text](etc/command.png "Command")
## 适用性
使用命令模式当你想

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -107,7 +107,7 @@ Arrays.stream(console.getData()).forEach(LOGGER::info);
## 类图
![alt text](../../../composite-entity/etc/composite_entity.urm.png "Composite Entity Pattern")
![alt text](etc/composite_entity.urm.png "Composite Entity Pattern")
## 适用场景

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

View File

@ -151,7 +151,7 @@ elfMessage.print(); // Much wind pours from your mouth.
## 类图
![alt text](../../../composite/etc/composite.urm.png "Composite class diagram")
![alt text](etc/composite.urm.png "Composite class diagram")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -83,7 +83,7 @@ var user = userConverter.convertFromDto(dtoUser);
## 类图
![alt text](../../../converter/etc/converter.png "Converter Pattern")
![alt text](etc/converter.png "Converter Pattern")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -146,7 +146,7 @@ customerDao.getAllCustomers(): java.util.stream.ReferencePipeline$Head@6ec8211c
## 类图
![alt text](../../../dao/etc/dao.png "Data Access Object")
![alt text](etc/dao.png "Data Access Object")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -11,7 +11,7 @@ tags:
数据总线模式(译者:实际上,就是 Event-Bus 消息总线模式)允许在一个应用程序的组件之间收发消息/事件,而不需要这些组件相互感知,它们只需要知道所发送/接收的消息/事件的类型即可。
## 类图
![data bus pattern uml diagram](../../../data-bus/etc/data-bus.urm.png "Data Bus pattern")
![data bus pattern uml diagram](etc/data-bus.urm.png "Data Bus pattern")
## 适用场景
可以在以下场景使用数据总线模式:

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -10,7 +10,7 @@ tags:
一个用于在持久化对象和数据库之间传输数据的映射器,同时保持它们之间和映射器本身的独立性。
## 类图
![alt text](../../../data-mapper/etc/data-mapper.png "Data Mapper")
![alt text](etc/data-mapper.png "Data Mapper")
## 适用场景
数据映射器适用于以下场景:

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -91,7 +91,7 @@ public class CustomerResource {
## 类图
![alt text](../../../data-transfer-object/etc/data-transfer-object.urm.png "data-transfer-object")
![alt text](etc/data-transfer-object.urm.png "data-transfer-object")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -103,7 +103,7 @@ clubbedTroll.fleeBattle(); // The troll shrieks in horror and runs away!
```
## 类图
![alt text](../../../decorator/etc/decorator.urm.png "Decorator pattern class diagram")
![alt text](etc/decorator.urm.png "Decorator pattern class diagram")
## 适用性
使用装饰者

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -13,7 +13,7 @@ tags:
它是一种让对象将某种行为向外部表达,但实际上将实现该行为的责任委托给关联对象的技术。
## 类图
![alt text](../../../delegation/etc/delegation.png "Delegate")
![alt text](etc/delegation.png "Delegate")
## 适用性
使用委托模式以实现以下目的

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -81,7 +81,7 @@ public class AdvancedWizard implements Wizard {
## 类图
![alt text](../../../dependency-injection/etc/dependency-injection.png "Dependency Injection")
![alt text](etc/dependency-injection.png "Dependency Injection")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -14,7 +14,7 @@ tags:
避免昂贵资源的重新获取。资源保留其身份,保留在某些快速访问的存储中,并被重新使用以避免再次获取它们。
## 类图
![alt text](../../../dirty-flag/etc/dirty-flag.png "Dirty Flag")
![alt text](etc/dirty-flag.png "Dirty Flag")
## 适用性
在以下情况下使用脏标志模式

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

@ -10,7 +10,7 @@ tags:
通过先测试锁定标准("锁提示")而不实际获取锁的方式来减少获取锁的开销。只有当锁定标准检查表明需要锁定时,才进行实际的锁定逻辑。
## 类图
![alt text](../../../double-checked-locking/etc/double_checked_locking_1.png "Double Checked Locking")
![alt text](etc/double_checked_locking_1.png "Double Checked Locking")
## 适用场景
在以下场景适合使用双重锁检查模式:

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -186,7 +186,7 @@ facade.endDay();
```
## 类图
![alt text](../../../facade/etc/facade.urm.png "Facade pattern class diagram")
![alt text](etc/facade.urm.png "Facade pattern class diagram")
## 适用性
使用外观模式当

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View File

@ -10,7 +10,7 @@ tags:
使用分离的构建器和工厂接口来定义一个不可变内容的工厂。
## 类图
![alt text](../../../factory-kit/etc/factory-kit.png "Factory Kit")
![alt text](etc/factory-kit.png "Factory Kit")
## 适用场景
工厂套件模式适用于与以下场景:

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -60,7 +60,7 @@ blacksmith.manufactureWeapon(WeaponType.AXE);
```
## 类图
![alt text](../../../factory-method/etc/factory-method.urm.png "Factory Method pattern class diagram")
![alt text](etc/factory-method.urm.png "Factory Method pattern class diagram")
## 适用性
使用工厂方法模式当

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -106,7 +106,7 @@ This is Ferrari.
## 类图
![alt text](../../../factory/etc/factory.urm.png "Factory pattern class diagram")
![alt text](etc/factory.urm.png "Factory pattern class diagram")
## 适用场景

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@ -10,7 +10,7 @@ tags:
给定一种语言,请定义其语法的表示形式,以及使用该表示形式来解释该语言中的句子的解释器。
## 类图
![alt text](../../../interpreter/etc/interpreter_1.png "Interpreter")
![alt text](etc/interpreter_1.png "Interpreter")
## 适用性
有一种要解释的语言时,请使用解释器模式,并且可以将语言中的语句表示为抽象语法树。解释器模式在以下情况下效果最佳

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -112,7 +112,7 @@ while (itemIterator.hasNext()) {
```
## 类图
![alt text](../../../iterator/etc/iterator_1.png "Iterator")
![alt text](etc/iterator_1.png "Iterator")
## 适用性
以下情况使用迭代器模式

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@ -126,7 +126,7 @@ public class Weather {
```
## Class diagram
![alt text](../../../observer/etc/observer.png "Observer")
![alt text](etc/observer.png "Observer")
## 应用
在下面任何一种情况下都可以使用观察者模式

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -117,7 +117,7 @@ immutableStew.mix(); // Mixing the immutable stew we find: 2 potatoes, 4 carrot
## 类图
![alt text](../../../private-class-data/etc/private-class-data.png "Private Class Data")
![alt text](etc/private-class-data.png "Private Class Data")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -10,7 +10,7 @@ tags:
生产者消费者设计模式是一种经典的并发模式,通过将工作与执行工作任务分开来减少生产者与消费者之间的耦合。
## 类图
![alt text](../../../producer-consumer/etc/producer-consumer.png "Producer Consumer")
![alt text](etc/producer-consumer.png "Producer Consumer")
## 适用性
在以下情况下使用生产者消费者

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -120,7 +120,7 @@ Brown wizard is not allowed to enter!
## 类图
![alt text](../../../proxy/etc/proxy.urm.png "Proxy pattern class diagram")
![alt text](etc/proxy.urm.png "Proxy pattern class diagram")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -13,7 +13,7 @@ tags:
一个分片本身就是一个数据存储(它可以包含许多不同类型的实体的数据),运行在作为存储节点的服务器上。
## 类图
![alt text](../../../sharding/etc/sharding.urm.png "Sharding pattern class diagram")
![alt text](etc/sharding.urm.png "Sharding pattern class diagram")
## 适用场景
这种设计模式提供了一下的好处:

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

View File

@ -132,7 +132,7 @@ public class Mammoth {
```
## 类图
![alt text](../../../state/etc/state_urm.png "State")
![alt text](etc/state_urm.png "State")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@ -109,7 +109,7 @@ public class DragonSlayer {
```
## 类图
![alt text](../../../strategy/etc/strategy_urm.png "Strategy")
![alt text](etc/strategy_urm.png "Strategy")
## 应用
使用策略模式当

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

View File

@ -116,7 +116,7 @@ public class HalflingThief {
```
## 类图
![alt text](../../../template-method/etc/template_method_urm.png "Template Method")
![alt text](etc/template_method_urm.png "Template Method")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -128,7 +128,7 @@ Exception: Tried to update stale version 0 while actual version is 1
## 类图
![alt text](../../../version-number/etc/version-number.urm.png "Version Number pattern class diagram")
![alt text](etc/version-number.urm.png "Version Number pattern class diagram")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -198,7 +198,7 @@ Good to see you commander
## Class diagram
![alt text](../../../visitor/etc/visitor_1.png "Visitor")
![alt text](etc/visitor_1.png "Visitor")
## 适用性

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB