Improve update and install through web console
----------------------------------------------
Key: FELIX-793
URL: https://issues.apache.org/jira/browse/FELIX-793
Project: Felix
Issue Type: Improvement
Affects Versions: webconsole-1.2.0
Reporter: Felix Meschberger
Assignee: Felix Meschberger
Fix For: webconsole-1.2.2
When updating or installing a bundle with the web console, the bundle is first
updated or installed and after a delay of 2 seconds, the
Packageadmin.refreshPackages method is called with null to refresh all bundles.
There are two required enhancements:
(1) Only the bundle just installed/updated should be refreshed (if refresh is
actually asked for)
(2) If the web console itself is being upgraded, the bundle will not actually
be refreshed because the PackageAdmin service cannot be retreived. The reason
for this is, that the bundle context used at the time of acquiring the
PackageAdmin might be invalid.
To fix (1) the InstallHelper.doRun method is defined to return the bundle
installed or updated. This bundle is then given to the
PackageAdmin.refreshPackages method to just refresh this single bundle and its
dependents.
To (2) the PackageAdmin servicew is retrieved before installing or updating the
bundle. (There might be a slight chance that this PackageAdmin object might get
invalid, but we pay that price for now)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.