From f637107b875f2c7c7bdb72695c6cebfbd3c84ee7 Mon Sep 17 00:00:00 2001 From: moralok Date: Mon, 4 Dec 2023 08:25:57 +0000 Subject: [PATCH] =?UTF-8?q?Rename=202=20post=20links=EF=BC=88Dubbo?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ks.md => 2023-11-28-how-does-Dubbo-SPI-works.md} | 2 +- .../Pasted image 20231129010505.png | Bin .../Pasted image 20231129024723.png | Bin .../Pasted image 20231129204920.png | Bin .../Snipaste_2023-11-29_03-25-54.png | Bin ...-how-does-Dubbo-SPI-adaptive-extension-works.md} | 2 +- 6 files changed, 2 insertions(+), 2 deletions(-) rename source/_posts/{2023-11-28-how-Dubbo-SPI-works.md => 2023-11-28-how-does-Dubbo-SPI-works.md} (99%) rename source/_posts/{2023-11-28-how-Dubbo-SPI-works => 2023-11-28-how-does-Dubbo-SPI-works}/Pasted image 20231129010505.png (100%) rename source/_posts/{2023-11-28-how-Dubbo-SPI-works => 2023-11-28-how-does-Dubbo-SPI-works}/Pasted image 20231129024723.png (100%) rename source/_posts/{2023-11-28-how-Dubbo-SPI-works => 2023-11-28-how-does-Dubbo-SPI-works}/Pasted image 20231129204920.png (100%) rename source/_posts/{2023-11-28-how-Dubbo-SPI-works => 2023-11-28-how-does-Dubbo-SPI-works}/Snipaste_2023-11-29_03-25-54.png (100%) rename source/_posts/{2023-11-29-how-Dubbo-SPI-adaptive-extension-works.md => 2023-11-29-how-does-Dubbo-SPI-adaptive-extension-works.md} (98%) diff --git a/source/_posts/2023-11-28-how-Dubbo-SPI-works.md b/source/_posts/2023-11-28-how-does-Dubbo-SPI-works.md similarity index 99% rename from source/_posts/2023-11-28-how-Dubbo-SPI-works.md rename to source/_posts/2023-11-28-how-does-Dubbo-SPI-works.md index 5a906ee1..3f1e1358 100644 --- a/source/_posts/2023-11-28-how-Dubbo-SPI-works.md +++ b/source/_posts/2023-11-28-how-does-Dubbo-SPI-works.md @@ -630,7 +630,7 @@ private void injectValue(T instance, Method method, Class pt, String property } ``` -`objectFactory` 是 `ExtensionFactory` 的自适应拓展,通过它获取依赖对象,本质上是根据目标拓展类获取 `ExtensionLoader`,然后获取其自适应拓展,过程代码如下。具体我们不再深入分析,可以参考{% post_link 'how-Dubbo-SPI-adaptive-extension-works' 'Dubbo SPI 自适应拓展的工作原理' %}。 +`objectFactory` 是 `ExtensionFactory` 的自适应拓展,通过它获取依赖对象,本质上是根据目标拓展类获取 `ExtensionLoader`,然后获取其自适应拓展,过程代码如下。具体我们不再深入分析,可以参考{% post_link 'how-does-Dubbo-SPI-adaptive-extension-works' 'Dubbo SPI 自适应拓展的工作原理' %}。 ```java public T getExtension(Class type, String name) { diff --git a/source/_posts/2023-11-28-how-Dubbo-SPI-works/Pasted image 20231129010505.png b/source/_posts/2023-11-28-how-does-Dubbo-SPI-works/Pasted image 20231129010505.png similarity index 100% rename from source/_posts/2023-11-28-how-Dubbo-SPI-works/Pasted image 20231129010505.png rename to source/_posts/2023-11-28-how-does-Dubbo-SPI-works/Pasted image 20231129010505.png diff --git a/source/_posts/2023-11-28-how-Dubbo-SPI-works/Pasted image 20231129024723.png b/source/_posts/2023-11-28-how-does-Dubbo-SPI-works/Pasted image 20231129024723.png similarity index 100% rename from source/_posts/2023-11-28-how-Dubbo-SPI-works/Pasted image 20231129024723.png rename to source/_posts/2023-11-28-how-does-Dubbo-SPI-works/Pasted image 20231129024723.png diff --git a/source/_posts/2023-11-28-how-Dubbo-SPI-works/Pasted image 20231129204920.png b/source/_posts/2023-11-28-how-does-Dubbo-SPI-works/Pasted image 20231129204920.png similarity index 100% rename from source/_posts/2023-11-28-how-Dubbo-SPI-works/Pasted image 20231129204920.png rename to source/_posts/2023-11-28-how-does-Dubbo-SPI-works/Pasted image 20231129204920.png diff --git a/source/_posts/2023-11-28-how-Dubbo-SPI-works/Snipaste_2023-11-29_03-25-54.png b/source/_posts/2023-11-28-how-does-Dubbo-SPI-works/Snipaste_2023-11-29_03-25-54.png similarity index 100% rename from source/_posts/2023-11-28-how-Dubbo-SPI-works/Snipaste_2023-11-29_03-25-54.png rename to source/_posts/2023-11-28-how-does-Dubbo-SPI-works/Snipaste_2023-11-29_03-25-54.png diff --git a/source/_posts/2023-11-29-how-Dubbo-SPI-adaptive-extension-works.md b/source/_posts/2023-11-29-how-does-Dubbo-SPI-adaptive-extension-works.md similarity index 98% rename from source/_posts/2023-11-29-how-Dubbo-SPI-adaptive-extension-works.md rename to source/_posts/2023-11-29-how-does-Dubbo-SPI-adaptive-extension-works.md index dd19f2de..6cdf0d1f 100644 --- a/source/_posts/2023-11-29-how-Dubbo-SPI-adaptive-extension-works.md +++ b/source/_posts/2023-11-29-how-does-Dubbo-SPI-adaptive-extension-works.md @@ -256,7 +256,7 @@ private T createAdaptiveExtension() { 2. 检查缓存 `cachedAdaptiveClass`,如果不为 `null`,则返回缓存。 3. 如果缓存为 `null`,则调用 `createAdaptiveExtensionClass` 创建自适应拓展类(代理类)。 -在{% post_link 'how-Dubbo-SPI-works' 'Dubbo SPI 的工作原理' %}中我们分析过 `getExtensionClasses` 方法,在获取拓展的所有实现类时,如果某个实现类被 `Adaptive` 注解标注了,那么该类就会被赋值给 `cachedAdaptiveClass` 变量。“原理”部分介绍的 `AdaptiveExtensionFactory` 就属于这种情况,我们不再细谈。按前文所说,在绝大多数情况下,`Adaptive` 注解都是用于标注方法而非标注具体的实现类,因此在大多数情况下程序都会走第三个步骤,由框架自动生成自适应拓展类(代理类)。 +在{% post_link 'how-does-Dubbo-SPI-works' 'Dubbo SPI 的工作原理' %}中我们分析过 `getExtensionClasses` 方法,在获取拓展的所有实现类时,如果某个实现类被 `Adaptive` 注解标注了,那么该类就会被赋值给 `cachedAdaptiveClass` 变量。“原理”部分介绍的 `AdaptiveExtensionFactory` 就属于这种情况,我们不再细谈。按前文所说,在绝大多数情况下,`Adaptive` 注解都是用于标注方法而非标注具体的实现类,因此在大多数情况下程序都会走第三个步骤,由框架自动生成自适应拓展类(代理类)。 ```java private Class getAdaptiveExtensionClass() {