Agenda OSGI OSGI OSGI Framework OSGI Framework OSGI

  • Slides: 25
Download presentation

Agenda �OSGI 简介 �OSGI 应用场景 �OSGI Framework开源实现 �OSGI Framework �OSGI Web App 实战 �Q&A

Agenda �OSGI 简介 �OSGI 应用场景 �OSGI Framework开源实现 �OSGI Framework �OSGI Web App 实战 �Q&A �参考资料 13 九月 2021

OSGI发展史 �R 1:The OSGi Service Gateway Specification Release 1. 0 was released in May

OSGI发展史 �R 1:The OSGi Service Gateway Specification Release 1. 0 was released in May 2000. 1、泛型 用于表达非代�的依� � 2、Capabilities R 2:OSGi Service Platform Release 2 was released in 3、Remote Services( 4. 2 定�, 4. 3�� ) October 2001. 4、适配 (于提供关于bundle的元信息,同�又不会使 bundle的接口。) �用特定�型的��符�染 R 3:OSGi Service Platform Release 3 was released in 5、Weaving (Weaving支持也得以��,���展 March 2003. 就可以插入到其他bundle的�加�机制中了。 ) �R 4:OSGi Service Platform Release 4 Version 4. 0 was first released in October 2005. Version 4. 1 was released in May 2007. Core and Compendium Version 4. 2 was released in September 2009. Enterprise Version 4. 2 was released in March 2010. Core Version 4. 3 was released in April 2011. 13 九月 2021

Agenda �OSGI 发展史 �OSGI 应用场景 �OSGI Framework 开源实现 �OSGI Framework �OSGI Web App 实战

Agenda �OSGI 发展史 �OSGI 应用场景 �OSGI Framework 开源实现 �OSGI Framework �OSGI Web App 实战 �Q&A �参考资料 13 九月 2021

OSGI应用场景 —Mobile �OSGi的Mobile规范的定义基于JSR 232,由Nokia和 Motorola提交给JCP的。 �Mobile OSGi framework 的实现支持的主要操作系统 有: ü Android ü Windows

OSGI应用场景 —Mobile �OSGi的Mobile规范的定义基于JSR 232,由Nokia和 Motorola提交给JCP的。 �Mobile OSGi framework 的实现支持的主要操作系统 有: ü Android ü Windows Mobile ü Symbian ü Brew ü Linux 13 九月 2021

Agenda �OSGI 发展史 �OSGI 应用场景 �OSGI Framework 开源实现 �OSGI Framework �OSGI Web App 实战

Agenda �OSGI 发展史 �OSGI 应用场景 �OSGI Framework 开源实现 �OSGI Framework �OSGI Web App 实战 �Q&A �参考资料 13 九月 2021

OSGI Framework开源实现 �Apache Felix - (felix. apache. org) �Eclipse Equinox - (www. eclipse. org/equinox/)

OSGI Framework开源实现 �Apache Felix - (felix. apache. org) �Eclipse Equinox - (www. eclipse. org/equinox/) �FUSE ESB 4 - (www. fusesource. com) �Knopflerfish - (www. knopflerfish. org) ü OSGI 先行者 �Pro. Syst´s m. Toolkit - (www. prosyst. com) ü 支持Mobile 13 九月 2021

Agenda �OSGI 发展史 �OSGI 应用场景 �OSGI Framework 开源实现 �OSGI Framework �OSGI Web App 实战

Agenda �OSGI 发展史 �OSGI 应用场景 �OSGI Framework 开源实现 �OSGI Framework �OSGI Web App 实战 �Q&A �参考资料 13 九月 2021

OSGI Manifest Headers Reference Header Attributes and Directives Organization Bundle-Activator OSGi Alliance Bundle-Classpath OSGi

OSGI Manifest Headers Reference Header Attributes and Directives Organization Bundle-Activator OSGi Alliance Bundle-Classpath OSGi Alliance Bundle-Description OSGi Alliance Bundle-License Bundle-Localization Bundle. Manifest. Version The only required header, description this entry specifies a unique. OSGi Alliance link identifier for a bundle, based OSGi Alliance on the reverse domain name convention (used also by OSGi Alliance the java packages). Bundle-Name Bundle-Symbolic. Name 13 九月 2021 OSGi Alliance singleton: OSGi Alliance

OSGI Manifest Headers Reference Header Export-Package Attributes and Directives bundle-symbolic-name bundle-version exclude: include: specification-version

OSGI Manifest Headers Reference Header Export-Package Attributes and Directives bundle-symbolic-name bundle-version exclude: include: specification-version uses: version Organization OSGi Alliance Require-Bundle Web-Context. Path Spring. Source Bundle-Required Execution. Environment OSGi Alliance (4. 3不建�使用) 详请参考: http: //www. osgi. org/Specifications/Reference. Headers 13 九月 2021

OSGI Manifest Sample 13 九月 2021

OSGI Manifest Sample 13 九月 2021

Class Loading Architecture 13 九月 2021

Class Loading Architecture 13 九月 2021

Equinox Class Loading 13 九月 2021

Equinox Class Loading 13 九月 2021

Agenda �OSGI 发展史 �OSGI 应用场景 �OSGI Framework 开源实现 �OSGI Framework �OSGI Web App 实战

Agenda �OSGI 发展史 �OSGI 应用场景 �OSGI Framework 开源实现 �OSGI Framework �OSGI Web App 实战 �Q&A �参考资料 13 九月 2021

OSGI Web App 实战(演示) 13 九月 2021

OSGI Web App 实战(演示) 13 九月 2021

创建OSGI WEB 程 �使用maven构建osgi项目 ü mvn archetype: generate Darchetype. Catalog=http: //schema. hidev. net/osgi/arche type-catalog.

创建OSGI WEB 程 �使用maven构建osgi项目 ü mvn archetype: generate Darchetype. Catalog=http: //schema. hidev. net/osgi/arche type-catalog. xml ü mvn eclipse: eclipse �启动osgi bundle ü Windows运行deploy. bat,Linux运行. /deploy. sh �打开浏览器 ü http: //127. 0. 0. 1: 8080/ 13 九月 2021

13 九月 2021

13 九月 2021