webx - SpringExt
来源:互联网 发布:mac更新卡住 强制重启 编辑:程序博客网 时间:2024/04/29 13:16
SpringExt装配服务
ResourceLoadingService是一个可以从各种输入源中(例如File System, Classpath, Webapp中)查找和读取文件的服务。
SpringExt原理
1.扩展点(Configuration Point)
SpringExt用扩展点来代表一个可被扩展的接口,每个扩展点都:
(1)对应一个唯一的名称 ,如:servces/resource-loading/loaders。
(2)对应一个唯一的namespace,如:http://www/alibaba.com/schema/services/resource-loading/loaders。
(3)对应一个唯一的schema,如:services-resource-loading-loaders.xsd
2.捐献(Contribution)
SpringExt把每一个对扩展点的具体扩展称作捐献,每个捐献都:
(1)在对同一个扩展点的所有捐献中,拥有一个唯一的名字,如:file-loader, webapp-loader, database-loader等。
(2)对应一个唯一的schema,如
- services/resource-loading/loaders/file-loader.xsd
- services/resource-loading/loaders/webapp-loader.xsd
- services/resource-loading/loaders/database-loader.xsd
3.组件和包
在SpringExt中, 一个模块既可成为别的模块的扩展,也可以被别的模块来扩展,这样的模块被称为“组件”。
4.schemas
XML编辑器通过访问schema可以实现两大功能:(1)语法提示功能(2)验证spring配置文件的正确性。
XML编辑器取得schema内容的途径有两条。
(1)一条途径是访问schemaLocation所指示的网址
如你声明的schemaLocation为:http://www.alibaba.com/schema/services.xsd,那么XML编辑器就会尝试访问www.alibaba.com服务器。
(2)将schema转换成静态文件,然后定义一个标准的XML Catalog来访问这些schema文件。
SpringExt提供了另两个解决方案:maven或eclipse插件。
即使你把XML中指定Schema Location中的schema的网址改成指向“外部服务器”,SpringExt永远不需要通过访问网络来访问schemas,因此SprIngExt推荐总是以http://localhost:8080/schema作为你的schemaLocation网址的前缀。
0 0
- Webx SpringExt
- webx - SpringExt
- WebX 3.0学习笔记(五):SpringExt
- webX
- Webx
- webx
- SpringExt 扩展原理
- SpringExt 源码学习
- springExt(转载)
- webx- webx framework
- Webx-webx turbine
- webx解析
- webx概念
- WebX基础知识
- webx学习
- webx 学习
- webx入门
- webx小结
- 贪心法求解三种有关区间覆盖问题
- 基于localstorage实现购物车功能
- 解决程序开机自动启动方法
- adb操作命令详解
- eclipse的ermaster环境搭建及生成实体bean
- webx - SpringExt
- 为什么说OC是没有绝对的私有方法的
- 集合的子集
- c#操作Excel类
- text/html & text/plain的区别
- Reconstruct Itinerary
- css图片垂直居中自适应
- 数据库之视图、索引
- 机器学习(Machine Learning)&深度学习(Deep Learning)资料