Skip to content

Commit

Permalink
Spring自定义XML扩展
Browse files Browse the repository at this point in the history
Dubbo
  • Loading branch information
Byron4j committed May 28, 2019
1 parent bbccd06 commit a1dbbd9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dubbo/1-Dubboshuli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## 加载配置文件,解析配置文件
DubboBeanDefinitionParser
DubboNamespaceHandler.init()
通过 META-INF/spring.handlers的配置回调DubboNamespaceHandler
DubboBeanDefinitionParser: 所有的dubbo标签,都统一用DubboBeanDefinitionParser进行解析,基于一对一属性映射,将XML标签解析为Bean对象。 (Config【配置层】)
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver#resolve

## 获取所有服务及相同服务的集群列表(cluster 路由层)



9 changes: 9 additions & 0 deletions Spring/7-XML自定义模式扩展.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# XML自定义模式扩展


```org.springframework.beans.factory.config.FieldRetrievingFactoryBean```

#### 参考资料

- [Spring官网文档](https://docs.spring.io/spring/docs/4.2.x/spring-framework-reference/html/xsd-configuration.html)
- [Spring Schemal](http://www.springframework.org/schema/)

0 comments on commit a1dbbd9

Please sign in to comment.