English 中文(简体)
我如何在编织案中提供两个服务?
原标题:How do I provide two services in an osgi.bnd file?
  • 时间:2012-04-25 12:35:20
  •  标签:
  • osgi
  • equinox

I m 采用Equinox, I ve got a OSGI。 BND 案卷

Service-Component: DefaultCommunication;
        provide:=com.whatever.service.Communication;
        implementation:=com.whatever.myservice.DefaultCommunication

但我现在要提供两个接口,即通信和配置。

届时档案会看什么?

最佳回答

http://www.aqute.biz/Bnd/Format#LIST“rel=“nofollow” 具体格式:

LIST A comma separated list. Items should be quoted with " if the contain commas. In general, a list item can also define attributes and directives on an item.

Bnd Service Components description:

• 提供:

阁下:

提供:=com.whatever.service.Communication,com.whatever.service.Configuration

问题回答

暂无回答




相关问题
OSGi - How mature is this technology?

I have a requirement where I need to share some web resources (jsp, html, js, images, css etc.) across different Spring based Struts 2 applications. And seems like OSGi can be used to achieve this? ...

OSGi unit testing without step that packages bundles

I have checked a few testing solution for OSGI including PAX and had a quick look at the abstract TestCase within Spring DM but they both appear to require one to jar up and bundle associated bundles. ...

Is there a way to secure access to bundles in OSGi?

I have an application consisting of several OSGi bundles. I would like to enforce that some of them only provide other bundles access to their services if a valid token (e. g. a license key) has been ...

• 如何限制方案资源+JV/OSGi的权利?

我想建立一个网站,让人们能够解决方案拟定任务,并最终上载解决办法(无论用哪一种证书-语言),以便核实并与其他人分享。

When to use ServiceTracker vs ServiceReference

I am just starting with OSGi programming and have come across two ways to listener for services being activated. The first way, from an EclipseRCP book, uses ServiceReference: String filter="(...

osgi-like framework without the import/export restrictions?

I like OSGi, but the import/export restrictions and the lack of context class loader creates havoc when trying to use 3rd party libraries (e.g., some libraries try to find file.xml in META-INF, ...

热门标签