应用程序和小应用程序的全局值 [英] Global values of application and applet

查看:233
本文介绍了应用程序和小应用程序的全局值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用桌面应用程序,维护世界的价值观,我通常有一些单身或静态属性。然而,最近几天,我一直在使用小程序。而且它会导致一些麻烦,因为当我在我们的Firefox不同选项卡打开应用程序,小应用程序在同一个JVM启动,并分享萨姆斯一成不变的东西。

With desktop applications, to maintain global values, I usually have some singleton or static properties. However, recent days, I have been working with applet. And it causes some trouble because when I we open the application in different tabs of Firefox, the applets are launched in the same JVM and share the sames static things.

我不知道你怎么做在这种情况下管理全球价值?

I wonder how you do manage global values in this case?

推荐答案

有关在的下一代Java插件技术 JRE,很容易。

For applets running in a Next Generation Java Plug-in Technology JRE, it is easy.

<param name="separate_jvm" value="true" />

这篇关于应用程序和小应用程序的全局值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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