在Apache Felix中禁用缓存 [英] Disabling Cache in Apache Felix

查看:88
本文介绍了在Apache Felix中禁用缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试按照该线程中的说明进行操作( http://osdir.com/ml/dev-felix-apache/2009-05/msg00051.html )以禁用felix中的文件系统包缓存.我在网上找不到具体的例子.

i'm trying to follow the instructions in this thread (http://osdir.com/ml/dev-felix-apache/2009-05/msg00051.html) to disable file system bundle cache in felix. I couldn not find a concrete example online.

有人可以帮我吗?这真的有用吗?

Can somebody help me with this? Is this really working?

谢谢.

克劳斯.

推荐答案

无法禁用捆绑包缓存,这是框架所必需的.您可以将其配置为在每次启动时都进行清理(org.osgi.framework.storage.clean),也可以尝试使用URL中引用的方法来创建自己的捆绑包缓存.除了破解框架代码本身之外,这些是您唯一的选择.自从写入URL引用的信息以来,bundle缓存发生了一点变化,因此尚不清楚是否对该方法有影响.

It is not possible to disable the bundle cache, it is required by the framework. You can configure it to be cleaned each startup (org.osgi.framework.storage.clean) or you can try to use the approach referenced in your URL to create your own bundle cache. Those are your only options, other than hacking on the framework code itself. The bundle cache has changed a little bit since the info referenced by URL was written, so it is not clear if there was an impact on the approach.

这篇关于在Apache Felix中禁用缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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