You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2015/04/16 12:27:58 UTC

[jira] [Assigned] (KARAF-3627) Add bundle revision information to bundle:list command

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

Freeman Fang reassigned KARAF-3627:
-----------------------------------

    Assignee: Freeman Fang

> Add bundle revision information to bundle:list command
> ------------------------------------------------------
>
>                 Key: KARAF-3627
>                 URL: https://issues.apache.org/jira/browse/KARAF-3627
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-shell
>    Affects Versions: 3.0.3
>            Reporter: John Ellinwood
>            Assignee: Freeman Fang
>            Priority: Critical
>              Labels: bundle, cache, shell
>             Fix For: 3.0.4
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> See [KARAF-3540] for why this might be useful.
> There is room for enhancing the karaf bundle:list command. OSGi can have multiple revisions of the same bundle, or cached versions of a bundle that was uninstalled, but the bundle:list doesn't show them.  The bundle:list command could 1) have an option to list bundles that are pending removal / need to be refreshed, and 2) list the full bundle URI including the bundle-revision id, or classpath id, not just the bundle ID.
> bundle revisions are different than versions.  
> For item 1)
> to see which bundles need to be refreshed or have multiple revisions loaded
> FrameworkWiring wiring = getBundleContext().getBundle(0).adapt(FrameworkWiring.class);
> Collection<Bundle> removal = wiring.getRemovalPendingBundles();
> Collection<Bundle> deps = wiring.getDependencyClosure(removal);
> For item 2)
> see the bundleRevision interface in osgi https://osgi.org/javadoc/r4v43/core/org/osgi/framework/wiring/BundleRevision.html . like "321.2" would indicate bundle 321, revision 2. This way you can see multiple revisions of the bundle are loaded.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)