The manifest file of OSGI bundle
来源:互联网 发布:淘客助手插件 mac 编辑:程序博客网 时间:2024/05/29 13:00
Every OSGI bundle is a jar file,and before you compress the bundle to a jar file, a configuration file is necessary,the following is a configuration file example.it is very simple.it belongs to .mf format configuration file.
file manifest.mf
Bundle-Activator: test.Activator
Bundle-Name: simplebundle
Bundle-SymbolicName: simplebundle
Bundle-Description: Demo Bundle
Bundle-Vendor: tiger
Bundle-Category: example
Import-Package: org.osgi.framework
Bundle-Version: 1.0.0
Manifest-Version: 1.0
the most important properties in preceding file is Bundle-Activator and Import-Package,they are emphasized by an underline.
Bundle-Activator tells the framework which is the Activtor class,this is a kind of "main" class of a bundle,after we deploy this bundle to the OSGI framework ,the bundle will start from this class.so we can consider that the Activator class is an entrance of an bundle.
Import-Package tells the framework that out bundle needs to access the classes in specified package,in the example it is org.osgi.framework.Any bundle needs an special package which is org.osgi.framework,only by this it is a bundle.By the way, a bundle may also need other packages when it is necessary.
- The manifest file of OSGI bundle
- Use of the MANIFEST.MF file in Java
- OSGI中MANIFEST.MF的bundle元数据信息描述
- OSGI(三)加载Bundle之Manifest.xml
- mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file
- general error c101008d: Failed to write the updated manifest to the resource of file
- general error c101008d: Failed to write the updated manifest to the resource of file...
- mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file
- OSGI BUNDLE
- 解读OSGI中描述Bundle元数据信息的MANIFEST.MF文件
- update manifest.mf of a jar file
- VS编译错误:mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file
- mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file ".\Rel
- 【Android】The Manifest File清单文件
- OSGi Manifest元文件
- missing required icon file. the bundle does not contain an app icon for iphone/ipod touch of exactly
- OSGi之Bundle
- OSGI Bundle安装
- 嵌入式实时操作系统VxWorks入门 (收藏)
- HTML 中动态增加、删除行的实现
- 异步同期 【start-stop synchronization】
- oracle小计
- sqlserver 日期转换
- The manifest file of OSGI bundle
- finall,finally,finalize辨析
- 组策略、安全策略、注册表几个常用命令
- 定时器的理解
- JCo使用记录
- Sharepoint 域认证中建立用户
- 几个常用的单词
- 软件开发应注意的细节(3)_数据的统计
- perl unicode