This is an automated email from the ASF dual-hosted git repository. wangxin pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-website.git
The following commit(s) were added to refs/heads/asf-site by this push: new d0f2a9e Declare the source version in the first article of the source code guide. (#291) d0f2a9e is described below commit d0f2a9e78a5d0c57f332df43b3304143951b70bb Author: 田小波 <tianxiaobo....@outlook.com> AuthorDate: Sun Feb 17 17:49:56 2019 +0800 Declare the source version in the first article of the source code guide. (#291) --- docs/zh-cn/source_code_guide/dubbo-spi.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/zh-cn/source_code_guide/dubbo-spi.md b/docs/zh-cn/source_code_guide/dubbo-spi.md index 3e91631..415a989 100644 --- a/docs/zh-cn/source_code_guide/dubbo-spi.md +++ b/docs/zh-cn/source_code_guide/dubbo-spi.md @@ -8,6 +8,8 @@ description: 本文介绍了 Dubbo SPI 的原理和实现细节 SPI 全称为 Service Provider Interface,是一种服务发现机制。SPI 的本质是将接口实现类的全限定名配置在文件中,并由服务加载器读取配置文件,加载实现类。这样可以在运行时,动态为接口替换实现类。正因此特性,我们可以很容易的通过 SPI 机制为我们的程序提供拓展功能。SPI 机制在第三方框架中也有所应用,比如 Dubbo 就是通过 SPI 机制加载所有的组件。不过,Dubbo 并未使用 Java 原生的 SPI 机制,而是对其进行了增强,使其能够更好的满足需求。在 Dubbo 中,SPI 是一个非常重要的模块。基于 SPI,我们可以很容易的对 Dubbo 进行拓展。如果大家想要学习 Dubbo 的源码,SPI 机制务必弄懂。接下来,我们先来了解一下 Java SPI 与 Dubbo SPI 的用法,然后再来分析 Dubbo SPI 的源码。 +需要特别说明的是,本篇文章以及本系列其他文章所分析的源码版本均为 **dubbo-2.6.4**。因此大家在阅读文章的过程中,需注意将代码版本切换到 dubbo-2.6.4 tag 上。 + ## 2.SPI 示例 ### 2.1 Java SPI 示例