A bundle is a group of Java classes and additional resources equipped with a detailed manifest
on all its contents, as well as additional services needed to give the included group of Java
classes more sophisticated behaviors, to the extent of deeming the entire aggregate a
component. 但它还是一个JAR文件。
1. Bundle Version,Bundle Manifest Version,Mainfest Version
(1)Bundle Version:每个Bundle都有一个版本,默认为:0;
(2)Bundle Manifest Version:对OSGi 3而言是:1,对OSGi4而言是:2;
(3)Mainfest Version:是JAR文件规范对JAR文件的要求。
2. OSGI MANIFEST HEADERS
(1) Bundle-Name: Bundle的一个简单的名字;
(2) Bundle-Description: Bundle的一个简单描述;
(3) Bundle-Version: 每个Bundle都有一个版本,默认为:0;
(4) Bundle-Activator: 指定一个当Bundle Activated时调用的类;
(5) Export-Package: 指定当前Bundle中那些Package可被Bundle外使用;
(6) Import-Package: 指定当前Bundle需要从外面获取的资源已满足自己的依赖;
3. SpringDM提供的Header
SpringExtender-Version: 1.1.0
默认情况下,当SpringDM extender安装后,SpringDM将检查每一个Bundle,而该HEader将允许应用Bundle
改变SpringDM该行为,即只有当一个确定版本的SpringDM extender存在时才执行该检查和处理的过程。
4. VTS提供的Header
(1)Application-Version:只用于PAR文件中MANIFEST.MF配置;
(2)Application-SymbolicName:该Header与Application-Version联合起来确保VTS中没有相同的PAR文件;
(3)Library-SymbolicName: org.aspectj
(4)Library-Version: 1.6.1
(5)Library-Name: Aspect
(6)Import-Bundle:
com.springsource.org.aspectj.runtime;version="[1.6.1 ,1.6.1]",
com.springsource.org.aspectj.weaver;version="[1.6.1, 1.6.1]"
(7)Import-Library: org.aspectj;version="1.6.1"
分享到:
相关推荐
org.jbundle.util.osgi.wrapped.org.apache.http.client-4.1.2.jar
Spring OSGi 入门.pdf Spring OSGi 入门.pdf
NULL 博文链接:https://cobble19.iteye.com/blog/1010849
Spring OSGi 入门.rar Spring OSGi 入门.rar
osgi最新jar包org.osgi.core-4.2.0
OSGI实战.pdfOSGI实战.pdfOSGI实战.pdfOSGI实战.pdfOSGI实战.pdf
OSGI进阶.pdf 个人收集电子书,仅用学习使用,不可用于商业用途,如有版权问题,请联系删除!
OSGI实战.pdf
org.eclipse.osgi_3.7.0.v20110613以及源码 。
[OSGi实战].(OSGi.in.Action).R.S.Hall&K.Pauls&S.McCulloch&D.Savage.文字版.pdf
体验OSGI..7 2.1. 需求实现..7 2.2. 技术角度..9 三. OSGI带来什么..11 四. OSGI案例..13 五. OSGI框架..15 5.1. Equinox..15 5.2. Oscar..15 5.3. Knopflerfish..15 六. 基于OSGI框架(Equinox)的实战..17 6.1. ...
基于java的开发源码-OSGi 分布式通讯组件 R-OSGi.zip 基于java的开发源码-OSGi 分布式通讯组件 R-OSGi.zip 基于java的开发源码-OSGi 分布式通讯组件 R-OSGi.zip 基于java的开发源码-OSGi 分布式通讯组件 R-OSGi.zip ...
osgi规范..................
com.springsource.org.apache.commons.dbcp-sources-1.2.2.osgi.jar源码 jar包
OSGi(Open Service Gateway Initiative)指OSGi Alliance组织制定的一个基于Java语言的服务(业务)规范——OSGi服务平台(Service Platform)。 它被广泛应用于嵌入式系统中,大名鼎鼎的eclipse也是基于此框架的,...
When the OSGi Alliance started in 1998, the focus was in residential gateways the organization's name contained the word gateway before it was changed to the OSGi Alliance. Since that time, OSGi ...
[OSGi实战].(OSGi.in.Action).R.S.Hall&K.Pauls&S.McCulloch&D.Savage.文字版.pdf 该书是一本入门的好教材
Manning.OSGi.in.Action.Jul.2010.MEAP.rar