[
https://issues.apache.org/jira/browse/ARIES-177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839079#action_12839079
]
Adam Wojtuniak commented on ARIES-177:
--------------------------------------
Hi Thomas
I've already submitted previous version of the patch which has refreshBundle
method like that:
public void refreshBundle(long bundleIdentifier) throws IOException {
Bundle bundle = FrameworkUtils.resolveBundle(context, bundleIdentifier);
packageAdmin.refreshPackages(new Bundle[] { bundle });
}
I prefer this version of this method cause we are using FrameworkUtils to
getting a bundle (we don't want to repeat the code).
Thanks for the patch.
Adam
> JMX FrameworkMBean does not allow to resolve/refresh all bundles
> ----------------------------------------------------------------
>
> Key: ARIES-177
> URL: https://issues.apache.org/jira/browse/ARIES-177
> Project: Aries
> Issue Type: Bug
> Components: JMX
> Reporter: Thomas Diesler
> Attachments: aries-177.patch
>
>
> The signature and API docs of
> FrameworkMBean.refreshBundles(long[] bundleIdentifiers)
> FrameworkMBean.resolveBundles(long[] bundleIdentifiers)
> does not obviously allow to resolve/refresh all bundles.
> A client would be forced to collect all ids before making the call.
> PackageAdmin however uses a null paramter to mean 'all bundles'.
> https://www.osgi.org/members/bugzilla/show_bug.cgi?id=1586
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.