1. 理解Felix Gogo Shell Service
Felix提供了一个简单且可扩展的shell服务,允许bundle暴露命令给shell用户。Shell Service 或自动检测bundle
注册的命令,并且通过控制台的方式提供给用户使用。
2. 实现一个Gog Shell服务命令
主要内容:
2.1 Creating a proxy class that defines the commands - one method per command syntax flavor;
2.2 Registering the proxy as a service with OSGi framework,along with properties int the registeration dictionary.
其中在注册command时有两个service properties被使用到:
(1) osgi.command.scope:被注册命令所在的域,一个字符串;
(2) osgi.command.function: A string array listingh the command to be exposed from the
registered proxy.
3. 开发一个Command Bundle
见附件。
分享到:
相关推荐
NULL 博文链接:https://springsfeng.iteye.com/blog/1106933
org.apache.felix.framework-1.4.1.jar
osgi框架最新felix-framework-5.6.8,想找个felix插件版的,可惜404
Java,Myeclispe,strtuts,hibernate,spring,js,ajax开发笔记,Felix笔记
离线安装包,测试可用
org.apache.felix.main-1.4.1.jar
org.apache.felix.shell-1.0.2.jar
org.apache.felix.bundlerepository-1.2.1.jar
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
内含bin,bundle,conf,doc等文件包含了OSGI框架和标准的服务。
Felix框架版本2.0.2的源代码,从Eclipse导出的zip包,可以重新导入为Eclipse的项目
felix-on-androidfelix-on-android osgi androidsee:优点:在有限情况下,实现静黙升级;快速分发,升级;动态加载(扩展)应用功能(需要定义良好的框架);向第三方开放接口,我们成为平台;缺点:更加复杂的升级方案...
Felix_OSGi实作,介绍最流行的OSGI framwork-Felix的好文档
Hacking Huawei VRP
https://my.oschina.net/penngo/blog/3085393附件felix.main源码
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装