[
https://issues.apache.org/jira/browse/ARIES-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Diesler updated ARIES-177:
---------------------------------
Attachment: aries-177.patch
Replace
public void refreshPackages(long bundleIdentifier) throws IOException {
Bundle bundle = FrameworkUtils.resolveBundle(context, bundleIdentifier);
packageAdmin.refreshPackages(new Bundle[] { bundle });
}
with
public void refreshBundle(long bundleIdentifier) throws IOException
{
Bundle bundle = context.getBundle(bundleIdentifier);
if (bundle == null)
throw new IllegalArgumentException("Bundle does not exist: " +
bundleIdentifier);
packageAdmin.refreshPackages(new Bundle[] { bundle });
}
> 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.