获得OSGi Bundle相关的路径信息
来源:互联网 发布:域名在哪里备案 编辑:程序博客网 时间:2024/05/29 14:21
(1) 获得OSGi Bundle安装的根路径:
FileLocator.getBundleFile(Platform.getBundle(“bundle_id”)).getAbsolutePath();
Platform.getBundle方法调用并不会Activate当前Bundle, 其只是获得当前系统内相应的被解析(Resolved)的Bundle
(2) 获得OSGi Bundle的 State Location.
Activator.getDefault().getStateLocation()
需要注意的是,该方法调用要求当前的Bundle必须是Active状态。
FileLocator.getBundleFile(Platform.getBundle(“bundle_id”)).getAbsolutePath();
Platform.getBundle方法调用并不会Activate当前Bundle, 其只是获得当前系统内相应的被解析(Resolved)的Bundle
(2) 获得OSGi Bundle的 State Location.
Activator.getDefault().getStateLocation()
需要注意的是,该方法调用要求当前的Bundle必须是Active状态。
- 获得OSGi Bundle相关的路径信息
- osgi中bundle相关研究
- OSGI中MANIFEST.MF的bundle元数据信息描述
- OSGI bundle的知识
- python获得路径和子路径下所有的文件的相关信息
- OSGi介绍及OSGi的Bundle应用
- OSGi介绍及OSGi的Bundle应用
- 获得显示器的相关信息
- 获得表的相关信息
- 补充 OSGI bundle的知识
- 浅析OSGI的bundle依赖
- OSGI的bundle监听类
- 解读OSGI中描述Bundle元数据信息的MANIFEST.MF文件
- OSGI BUNDLE
- osgi中org.osgi.service.cm bundle组件的使用
- 一个获得网络设备相关信息的源程序
- 获得TrueType字体文件 的相关信息
- 获得android手机的相关信息
- HTTP Status 500 ?org.apache.jasper.JasperException: /date.jsp(0,0) Page directive: can't have multip
- 扩展DynamicMapServiceLayer加载服务器TIF数据
- Amazon AppStream服务介绍
- 在Win2003、Win7、XP中配置IIS搭建ASP.NET Web网站或应用程序
- EC2使用iostat, netstat,需安装
- 获得OSGi Bundle相关的路径信息
- 错误:is quoted with " which must be escaped when used within the value (转载)
- dom4j的org.dom4j.IllegalAddException处理
- Android webview加载本地图片
- Windows7使用git/github
- oracle 热备脚本
- 最火爆的开源流式系统Storm vs 新星Samza .
- 学习算法之类
- 证书创建工具 和 参数详解 (Makecert.exe) .