
osgi
文章平均质量分 81
iteye_7108
这个作者很懒,什么都没留下…
展开
-
在Eclipse中搭建Apache Felix环境
本文中使用的是Eclipse3.6;Felix Framework版本是3.2.2。 1、从Apache Felix官网下载Felix Framework。官网地址: http://felix.apache.org/。 Felix Framework下载地址:http://felix.apache.org/site/downloads.cgi 下载F...原创 2011-09-19 15:26:39 · 293 阅读 · 0 评论 -
OSGI Component描述符详解
描述符文件中的元素(component.xml): 1、Component元素(可以存在多个Component元素) 包括5个子元素:<implementation> -- 必须<property> -- 可以出现任意次<properties> -- 可以出现任意次<service> ...原创 2011-09-20 14:15:41 · 807 阅读 · 0 评论 -
在Apache Felix中运行bundle
在前面搭建了一个Apache Felix的运行环境,下面就写一个简单的bundle,测试测试。1、新建一个插件工程,如下图: 点击下一步。 2、给插件工程命名一个名字,这里叫pig1。This plug-in is targeted to run with中选择an OSGI framework -->standard,如下图红框中所示: 点击下一步。 3...原创 2011-09-29 19:33:37 · 228 阅读 · 0 评论 -
Declarative Services中的服务引用
当某个Component依赖某一服务的时候,这个服务很有可能会被在任何时候注销,框架对这种情况只是做了简化处理,开发人员必须关心这个事情,做出相应的处理。 target services:写入到reference元素中的服务。这个时候Component configuration并没有真正引用这个服务。bound service:被绑定到Component configuration...原创 2013-03-05 11:29:47 · 167 阅读 · 0 评论