博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
使用spring dynamic modules的理由
阅读量:4659 次
发布时间:2019-06-09

本文共 1329 字,大约阅读时间需要 4 分钟。

spring的主要功能

spring框架提供了轻量级的容器和非侵入式的编程模型,这来自于其依赖注入、AOP和便携服务概念。

osgi的主要功能

osgi服务平台提供了动态的应用程序执行环境,支持模块(绑定)的安装、更新或者即时的删除。同时很好的支持了模块化和版本化。

 

spring dynamic modules的主要作用

spring dynamic modules (spring-dm) 便于将spring应用部署到osgi执行环境,并且可让spring应用利用到osgi框架提供的服务。spring-dm还使构建的spring应用开发为osgi应用变得更简化和更有生产效率。对于企业应用,结合spring-dm和osgi平台,可提供:

  1. 通过运行时模块之间的隔离,更易于分离应用程序的逻辑;
  2. 可在并发情况下部署一个模块(库)的多个版本;
  3. 可动态发现和使用系统其他模块提供的服务;
  4. 可在运行期间动态安装、更新和卸载模块;
  5. 使用spring框架实例化、配置、装配和包装模块中或者多个模块的组件;
  6. 给企业开发者使用osgi平台提供了简化的和熟悉的编程模型。

 

 

Spring Dynamic Modules 的前身是 Spring OSGi。

Spring Dynamic Modules,让写Spring应用可以部署在一个的OSGi执行环境,而且还可以充分利用所提供的服务的OSGi框架。 Spring的支持也使的OSGi开发的OSGi应用更简单和更富有成效的基础上,易用性和力量的Spring框架。为企业级应用,结合Spring Dynamic Modules和动态的 OSGi平台提供:

  • Better separation of application logic into modules, with runtime enforcement of module boundaries
  • The ability to deploy multiple versions of a module (or library) concurrently
  • The ability to dynamically discover and use services provided by other modules in the system
  • The ability to dynamically install, update and uninstall modules in a running system
  • Use of the Spring Framework to instantiate, configure, assemble, and decorate components within and across modules.
  • A simple and familiar programming model for enterprise developers to exploit the features of the OSGi platform.

转载于:https://www.cnblogs.com/viewcozy/p/4904391.html

你可能感兴趣的文章
List小结
查看>>
Windows 7 IIS (HTTP Error 500.21 - Internal Server Error)解决
查看>>
solr中Cache综述
查看>>
silverlight后台加载本地图片
查看>>
(转载) RESTful API 设计指南
查看>>
leetcode 120. 三角形最小路径和(Triangle)
查看>>
面向对象之封装与多态
查看>>
百度地图秘钥ak的获取
查看>>
[NOI2010]超级钢琴(RMQ+堆)
查看>>
【算法】动态规范(1)——子序列个数 ***
查看>>
chrome使用技巧
查看>>
Unity3D-坐标转换笔记
查看>>
css之background属性
查看>>
Oracle新建Schema
查看>>
randperm(产生随机数)、reshape(重塑矩阵) ...
查看>>
Java 的传值小例子
查看>>
Hadoop源码分析36 Child的Reduce分析
查看>>
wpf 解决 编码解码器无法使用提供的流类型 The codec cannot use the type of stream provided...
查看>>
JQuery对象函数
查看>>
js电话号码校验
查看>>