[
https://issues.apache.org/jira/browse/FELIX-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kristian Koehler updated FELIX-1421:
------------------------------------
Attachment: FELIX-1421_29_07_2009.txt
Attached patch file with a simple implementation which supports filtering for
bundles with services.
TestCase included which discovers a resource with:
--- 8< ---
Resource[] discoverResources =
repoAdmin.discoverResources("(service:<*org.apache.felix.shell.Command)");
--- 8< ---
Capability
--- 8< ---
<capability name="service">
<p n="service" v="org.apache.felix.shell.Command"/>
</capability>
--- 8< ---
Currently this supports only the capability "itself" not additional properties
from the capability such as version, etc. Here I'm not sure how this
(additional) information should be added to the filter string and how it should
be processed.
Should it be possible to give a filter like this?
--- 8< ---
(service:<*org.apache.felix.shell.Command,version=1.0.0)
--- 8< ---
(version - capability version)
How would I say that the capability version doesn't matter in my case (AND, OR,
etc)?
Kristian
> Filter bundles within OBR lacks support for capabilities/services
> -----------------------------------------------------------------
>
> Key: FELIX-1421
> URL: https://issues.apache.org/jira/browse/FELIX-1421
> Project: Felix
> Issue Type: Bug
> Components: Bundle Repository (OBR)
> Reporter: Kristian Koehler
> Attachments: FELIX-1421_29_07_2009.txt
>
>
> Hi
> as described on the mailing list
> (http://www.mail-archive.com/[email protected]/msg05122.html) the filter
> mechanism for OBR doesn't support "capability filtering".
> Defining a filter like:
> --- 8< ---
> '(service=org.apache.felix.shell.Command)'
> --- 8< ---
> doesn't work for bundles with such meta data:
> --- 8< ---
> <capability name="service">
> <p n="service" v="org.apache.felix.shell.Command"/>
> </capability>
> --- 8< ---
> Kristian
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.