You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2022/01/07 06:23:25 UTC

[dubbo-website] branch master updated: fix #611 (#1034)

This is an automated email from the ASF dual-hosted git repository.

liujun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 6924c5e  fix #611 (#1034)
6924c5e is described below

commit 6924c5eb3c648a41260b2d4c69e72b8bf75cd1f4
Author: Wang Chengming <63...@qq.com>
AuthorDate: Fri Jan 7 14:22:24 2022 +0800

    fix #611 (#1034)
---
 content/en/blog/news/introduction-to-dubbo-spi.md | 4 ++--
 content/zh/blog/news/introduction-to-dubbo-spi.md | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/content/en/blog/news/introduction-to-dubbo-spi.md b/content/en/blog/news/introduction-to-dubbo-spi.md
index ed8ff73..d3d7ebe 100644
--- a/content/en/blog/news/introduction-to-dubbo-spi.md
+++ b/content/en/blog/news/introduction-to-dubbo-spi.md
@@ -116,13 +116,13 @@ Maybe it is a little difficult to understand this concept when hearing about it
 
 ### 5.5 @SPI
 
-@SPI annotation works on the interface of the extension point, which indicates that the interface is an extension point, and can be loaded by Dubbo ExtentionLoader. If there is no such ExtentionLoader, the call will throw an exception.
+@SPI annotation works on the interface of the extension point, which indicates that the interface is an extension point, and can be loaded by Dubbo ExtensionLoader. If there is no such ExtentionLoader, the call will throw an exception.
 
 ### 5.6 @Adaptive
 
 @Adaptive annotation is used on the method that extends the interface, which indicates an adaptive method. When Dubbo generates an adaptive instance for an extension point, if the function has @Adaptive annotation, then Dubbo will generate the corresponding code for the method. The method determines which extension to use according to the parameters. When @Adaptive annotation is used on the class to implement a Decorator class, it is similar to the Decorator pattern, whose major function [...]
 
-### 5.7 ExtentionLoader
+### 5.7 ExtensionLoader
 
 Similar to the Java SPI ServiceLoader, it is responsible for loading extensions and life-cycle maintenance.
 
diff --git a/content/zh/blog/news/introduction-to-dubbo-spi.md b/content/zh/blog/news/introduction-to-dubbo-spi.md
index 2c0e67d..02e7e1c 100644
--- a/content/zh/blog/news/introduction-to-dubbo-spi.md
+++ b/content/zh/blog/news/introduction-to-dubbo-spi.md
@@ -112,14 +112,14 @@ Java SPI的使用很简单。也做到了基本的加载扩展点的功能。但
     自适应扩展实例在Dubbo中的使用非常广泛,Dubbo中,每一个扩展都会有一个自适应类,如果我们没有提供,Dubbo会使用字节码工具为我们自动生成一个。所以我们基本感觉不到自适应类的存在。后面会有例子说明自适应类是怎么工作的。
 
 ### 5.5 @SPI
-@SPI注解作用于扩展点的接口上,表明该接口是一个扩展点。可以被Dubbo的ExtentionLoader加载。如果没有此ExtensionLoader调用会异常。
+@SPI注解作用于扩展点的接口上,表明该接口是一个扩展点。可以被Dubbo的ExtensionLoader加载。如果没有此ExtensionLoader调用会异常。
 
 ### 5.6 @Adaptive
 @Adaptive注解用在扩展接口的方法上。表示该方法是一个自适应方法。Dubbo在为扩展点生成自适应实例时,如果方法有@Adaptive注解,会为该方法生成对应的代码。方法内部会根据方法的参数,来决定使用哪个扩展。
 @Adaptive注解用在类上代表实现一个装饰类,类似于设计模式中的装饰模式,它主要作用是返回指定类,目前在整个系统中AdaptiveCompiler、AdaptiveExtensionFactory这两个类拥有该注解。
 
 
-### 5.7 ExtentionLoader
+### 5.7 ExtensionLoader
 类似于Java SPI的ServiceLoader,负责扩展的加载和生命周期维护。
 
 ### 5.8 扩展别名