配置Equinox以修改“本地捆绑缓存”的管理。 [英] Configure Equinox to modify the management of the "local bundle cache"

查看:142
本文介绍了配置Equinox以修改“本地捆绑缓存”的管理。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于上一个问题,如何让OSGi重用您通过配置管理员进行配置,我仍在尝试在Equinox框架中解决此问题。

Relating to a previous question, how let OSGi to reuse your configuration via Config Admin, I am still trying to solve this problem in the Equinox Framework.

Pavol Juhos 写道:


Equinox Config Admin(org.eclipse.equinox。 cm)将配置数据存储在Framework提供的持久存储区域中。对于Equinox,这恰好是本地捆绑缓存目录。

Equinox Config Admin (org.eclipse.equinox.cm) stores the configuration data in the persistent storage area provided by the Framework. And that happens to be the "local bundle cache" directory by default for Equinox.

所以我读了这个主题并发现有几个运行时选项(其中包括osgi.configuration.area)。

So i read up on this topic and found that there are several runtime options for Equinox (among other things osgi.configuration.area).

我想要的是更改配置,以便本地捆绑缓存不会被删除或清理,因此下次我将运行Framework时,将使用最后输入的配置(对于任何捆绑包)。

What I want is to change the configuration, in order that the local bundle cache won't be droped or cleaned, so the next time I'll run the Framework, the last entered configuration (for any bundle) will be used.

推荐答案

还有 osgi.clean 属性。如果将此参数设置为true,则OSGi容器必须在启动时删除现有的捆绑缓存(以及所有相关数据),并将捆绑包重新加载到运行时缓存中。如果将其设置为false,那么捆绑缓存应该在重新启动后继续存在。

There is also the osgi.clean property. If you set this to true, the OSGi container must delete the existing bundle cache (and all related data) on startup and reload the bundles into the runtime cache. If you set this to false then your bundle cache should survive a restart.

这在Eclipse SDK Equinox运行时选项中有记录。

This is documented in the Eclipse SDK Equinox Runtime Options.

这篇关于配置Equinox以修改“本地捆绑缓存”的管理。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆