我学习开发使用IntelliJ IDEA的OSGi应用程序开发OSGi,我选择Apache's felix
Apache的菲利克斯作为运行时,我遇到的问题是下面: the screenshot is here使用的IntelliJ IDEA
我已经开发的模块例子1 ,2和2b,并且2b的包结构与2相同,但服务接口位于模块2中,模块2b仅用于交替服务,但我无法成功完成,felix告诉我该模块2b找不到self.gale.services.DictionaryService
,我不知道如何让模块2b可以找到在模块2中确切包装中定义的服务。
在模块2b中的活化剂的开始方法:
public void start(BundleContext context)
{
Hashtable<String, String> props = new Hashtable<>();
props.put("Language", "French");
context.registerService(
DictionaryService.class.getName(), new DictionaryServiceImpl(), props);
}
模块2B 导入-包的清单属性:org.osgi.framework,自我。 gale.services
我的意思是包self.gale.services
位于模块2中,而不是2b,但似乎无法找到该包。
代码,不是截图。 – chrylis