Closed PengZheng closed 1 year ago
Once #556 is resolved, the current implementation of uninstall can be renamed to "unload".
Then update can be implemented as unload
followed by install
.
This way, a refresh bundle is loaded from storage without any state inconsistency issues.
Additional benefits include:
bundleArchive_revise
.celix_bundleArchive_getLocation
is unnecessary.
When entering
celix_framework_bundleEntry_refreshBundleEntry
, bundle is in resolved state. If any of the steps incelix_framework_bundleEntry_refreshBundleEntry
fails, bundle state should be updated accordingly. Currently this is not the case.Note that to fix this issue, #557 should also be considered. The ultimate goal is to fully support bundle update, and thus the following warning should be eliminated: