文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学的各位小编整理了其他类别-基于OSGI标准的离线系统的设计与实现的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
论文字数:16963,页数:47 有开题报告,任务书
摘 要
OSGI规范定义了一个标准的,面向组件的,网络服务执行环境,这个环境是一个可扩展的面向服务架构(SOA[17])所必须的底层支持。为网络设备(或者嵌入式设备)添加OSGI的服务平台,就为设备添加了在网络上的任何地方来对其软件组件的生命周期进行管理的能力。软件组件能够被随意的安装(installed),更新(updated),或者卸载(remove)而不会对整个设备的核心控制产生任何影响。
目前,OSGI技术主要运用在许多不同产业的中间件软件上,同时为OSGI软件组件也创造了一个巨大的软件市场。OSGI服务平台能够使这些组件运行在无论大小,各式各样的设备上。OSGI标准的采用降低了软件开发维护成本,同时也创造了一个新商业机遇!
本文将首先对OSGI规范的基本内容做一个大致的探讨,让我们了解OSGI框架到底是如何构成的,它的基本设计思想,以及设计规范是怎样的。OSGI框架到底能让我们的系统具备那些让我们着迷的新特性的,它是以什么方式进行的。然后我们将看到一个实际的基于OSGI的项目,我们将从具体应用的角度去剖析,OSGI框架在实际项目中是如何应用的。我们将从项目的底层架构,功能设计,以及开发流程出发,详细的介绍整个项目的开发过程,相信有了这些,你将会对OSGI框架有个全新的认识,并能从中得到一些软件开发领域的一些新思想,同我们一起体验这一次伟大的变革。
基于OSGI搭建系统带来了不同的系统设计和开发的方式,它带来了Java界模块化级别设计思想的统一,相信不远的将来,大家会按照同样的方式去设计模块以及模块间的依赖,编写模块中的Component和Service,也许以后我们可以从网站上下载各种各样的Bundle,从而轻松搭建自己所需要的系统,这对与公司的积累而言无疑是非常有利的。毫无疑问,OSGI将带入我们进入一个面向服务架构的新视野,一切的一切都等待着我们大家一起去发掘。
关键词:JAVA,OSGI,SOA,组件,Bundle,面向服务架构。
The research and design for the offline system based on the OSGI Service Platform
ABSTRACT
The OSGI(TM) specifications definde a standardized, component oriented, computing environment for networked services that is the foundation of an enhanced service oriented architecture. Adding an OSGI Service Platform to a networked device(embedded as well as servers), adds the capability to manage the life-cycle of the software components in the device from anywhere in the network. Software components can be installed, updated,or removed on the fly without ever having to disrupt the operation of the device.
The presence of OSGI technology based middleware in many different industries is creating a large software market for OSGI software components. The OSGI Service Platform enables components to run on a variety of devices, from very small to very big.
This diploma work will to do with the study of the basic contents of OSGI specification, and let us know more about the questions such as how an OSGI framework is built,what its basic design thought is,and what the specification is.What`s more,how the OSGI framework makes our systems to carry those new characteristics whick lets us fell amazing.Then we will see one actual project according to the OSGI item,we will analyze from the architecture`s core concepts to check out how the OSGI framework goes on with the actual project.We will start with the basic structure of item,the function design, and the whole develop process to introduce the wholw development process of the project.Obviously,you will talk a new understanding to the OSGI framework,and can get some software development realm from it or some thought lately.Just go with us and take a taste of this greate change.
The system basing on the OSGI can bring us some different ideas on system design and new developemet style.It is making a unify on the module and design in Java field.Very soon,every will design the dependence between the module and module by the same way,writing the Component and service.Perhaps we can carry the various kinds of Bundles from the websit,building our system easily.Thest are very beneficial for companies.No doubt,the OSGI will take us to enter a new visual field which faces to service structure.All of these are waiting for us to discover together!
Keywords: JAVA, OSGI, SOA, Component, Bundle, Service-oriented Architecture.
目 录
1 绪论 1
1.1 课题背景 1
1.2 研究现状与发展趋势 2
1.3 论文主要工作 3
1.4 论文组织结构 4
2 相关技术原理 5
2.1 OSGI关键部分讲解 5
2.1.1 Declarative Services 5
2.1.2 Bundle的通讯机制 5
2.1.3 DS中Component的生命周期 6
2.2 应用OSGI 7
2.3 Spring与OSGI 7
3 系统分析和设计 9
3.1 系统概述 9
3.2 设计原则 9
3.2.1 满足OSGI规范 9
3.2.2 系统的部署和更新 9
3.2.3 系统数据的传输 10
3.3 架构设计 11
3.3.1 总体架构简述 11
3.3.2 数据库设计 12
3.3.3 将业务模块化 13
3.4 功能设计 15
3.4.1 业务功能概述 15
3.4.2 数据绑定框架 16
3.4.3 错误处理框架 17
3.4.4 报表技术 19
3.5 权限设计 19
3.5.1 功能定义(BA_Function ) 19
3.5.2 菜单定义(BA_Menu) 20
3.5.3 用户管理 20
3.5.4 角色管理 20
3.5.5 权限分配 20
3.5.6 系统登录 21
4 系统实现 22
4.1 开发环境 23
4.2 框架实现 23
4.2.1 Eclipse RCP 23
4.2.2 IBatis与Derby 24
4.2.3 Spring对IBatis的支持 25
4.3 保养提醒模块实现讲解 27
4.3.1 页面及功能描述 27
4.3.2 保养提醒页面 27
4.3.3 页面说明 27
4.3.4 实现方法 28
4.3.5 表设计与表关系 28
4.3.6 部分源代码 29
5 系统测试 33
5.1 测试环境 33
5.2 测试数据 33
5.3 测试结果 34
结论 35
致谢 36
参考文献 37