You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Kristian Koehler (JIRA)" <ji...@apache.org> on 2009/07/29 08:32:14 UTC

[jira] Created: (FELIX-1421) Filter bundles within OBR lacks support for capabilities/services

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


Hi

as described on the mailing list (http://www.mail-archive.com/users@felix.apache.org/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.


[jira] Updated: (FELIX-1421) Filter bundles within OBR lacks support for capabilities/services

Posted by "Kristian Koehler (JIRA)" <ji...@apache.org>.
     [ 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/users@felix.apache.org/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.


[jira] Resolved: (FELIX-1421) Filter bundles within OBR lacks support for capabilities/services

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved FELIX-1421.
------------------------------------

    Resolution: Duplicate
      Assignee: Guillaume Nodet

I'm closing this issue as a duplicate of FELIX-2109 as I think your use case is solved.  Please reopen and provide more informations if that's not the case. 

> 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
>            Assignee: Guillaume Nodet
>         Attachments: FELIX-1421_29_07_2009.txt
>
>
> Hi
> as described on the mailing list (http://www.mail-archive.com/users@felix.apache.org/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.