dubbo学习笔记 六 dubbo-container
来源:互联网 发布:linux卸载httpd服务 编辑:程序博客网 时间:2024/06/05 20:15
这个模块比较简单,东西也不多,好写
看下SpringContainer吧,里面就是把META-INF/spring 下面的文件加载起来
public class SpringContainer implements Container { private static final Logger logger = LoggerFactory.getLogger(SpringContainer.class); public static final String SPRING_CONFIG = "dubbo.spring.config"; public static final String DEFAULT_SPRING_CONFIG = "classpath*:META-INF/spring/*.xml"; static ClassPathXmlApplicationContext context; public static ClassPathXmlApplicationContext getContext() {return context;}public void start() { String configPath = ConfigUtils.getProperty(SPRING_CONFIG); if (configPath == null || configPath.length() == 0) { configPath = DEFAULT_SPRING_CONFIG; } context = new ClassPathXmlApplicationContext(configPath.split("[,\\s]+")); context.start(); } public void stop() { try { if (context != null) { context.stop(); context.close(); context = null; } } catch (Throwable e) { logger.error(e.getMessage(), e); } }}
0 0
- dubbo学习笔记 六 dubbo-container
- dubbo源码 学习笔记(六)
- dubbo学习笔记
- 阿里Dubbo学习笔记
- dubbo-学习笔记
- dubbo入门学习笔记
- dubbo学习笔记
- dubbo 学习笔记
- dubbo学习笔记
- dubbo学习概要笔记
- Dubbo入门学习笔记
- Dubbo 学习笔记
- DUBBO学习笔记
- dubbo 学习笔记
- dubbo学习笔记
- Dubbo框架学习笔记
- Dubbo的学习笔记
- dubbo学习笔记
- linux 常用操作
- wordpress内核揭秘之day4_到底数据库操作是怎么实现的
- 扩展int13h调用详解(修正)
- Core java 第九版第三章基本程序结构
- BootStrap--CSS组件--分页(pagination)和翻页(pager)
- dubbo学习笔记 六 dubbo-container
- openwrt添加本地镜像地址
- caffe常用层的参数设置说明
- layer插件的初始化
- 初步学习使用msysgit基本操作以及上传项目到GitHub
- 用Python写a穿过#
- 欢迎使用CSDN-markdown编辑器
- MySQL数据库的21中优化方法,(以供学习)
- SQL优化总结