Using OSGi to implement auto-update

可紊 提交于 2019-11-30 12:11:59

You don't even need to download it, just check if an update is available and then call Bundle.update(InputStream) on the bundle that needs to be updated, generally followed by a call to PackageAdmin.refreshPackages() afterward.

you can check well-known provisioning solutions that can do all your steps instead of you (check for a new version, download, install/update, restart etc.)

  1. For Equinox framework: p2 http://www.eclipse.org/equinox/p2/
  2. For any OSGi R4 framework: Apache ACE http://incubator.apache.org/ace/a-brief-introduction.html

best regards, Dmytro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!