You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2014/07/10 18:54:04 UTC

[jira] [Updated] (KARAF-2749) BundleSelector should be more "selective"

     [ https://issues.apache.org/jira/browse/KARAF-2749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated KARAF-2749:
----------------------------------------

    Description: 
The bundle:* (or osgi:*) commands and the BundlesMBean/BundleMBean use a BundleSelector.
It allows user to select a bundle:
- with the bundle ID
- with the bundle name or symbolic name
- with the bundle location

In the case of name/symbolic name or location, the BundleSelector supports regex. Unfortunately, it uses Matcher.find() method which is "open" in the selected bundles.
Matcher.matches() is probably better.

I will check if we can always use match() or if an option would be better.

  was:
The bundle:* (or osgi:*) commands and the BundlesMBean/BundleMBean use a BundleSelector.
It allows user to select a bundle:
- with the bundle ID
- with the bundle name or symbolic name
- with the bundle location

In the case of name/symbolic name or location, the BundleSelector supports regex. Unfortunately, it uses Matcher.find() method which is "open" in the selected bundles.
Matcher.match() is probably better.

I will check if we can always use match() or if an option would be better.


> BundleSelector should be more "selective"
> -----------------------------------------
>
>                 Key: KARAF-2749
>                 URL: https://issues.apache.org/jira/browse/KARAF-2749
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-core
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.4.0, 4.0.0, 3.0.2, 2.3.6
>
>
> The bundle:* (or osgi:*) commands and the BundlesMBean/BundleMBean use a BundleSelector.
> It allows user to select a bundle:
> - with the bundle ID
> - with the bundle name or symbolic name
> - with the bundle location
> In the case of name/symbolic name or location, the BundleSelector supports regex. Unfortunately, it uses Matcher.find() method which is "open" in the selected bundles.
> Matcher.matches() is probably better.
> I will check if we can always use match() or if an option would be better.



--
This message was sent by Atlassian JIRA
(v6.2#6252)