On 7/28/09 8:45 AM, Kristian Köhler wrote:
Hi

is there an easy way to search for a provided service (from a bundle) within the OBR?

I added an 'capability' element to my bundle metadata like this:

--- 8< ---
<capability name="service">
<p n="service" v="org.apache.felix.shell.Command"/>
</capability>
--- 8< ---

But the capabilities are not 'exported' to the properties which I can filter for (like symbolicname, etc).

I'd like to define a filter string like this to discover all bundles providing a specific service:

--- 8< ---
'(service=org.apache.felix.shell.Command)'
--- 8< ---

Is this possible at all?

No, it is not, but I guess technically it is possible. We'd have to add capabilities to the property map and make CapabilityImpl comparable with some sort of constructor taking a string value to create an instance for comparison.

-> richard


Thanks

Kristian

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to