是否有Java小程序的插件框架? [英] Is there any plugin framework for Java Applets?

查看:177
本文介绍了是否有Java小程序的插件框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个小程序或Java Web Start的运行大型Java应用程序。而且它成长越来越多。典型用户只需要这些类中的一小部分。因为Java不知道可以在其中JAR文件,直到它找到它的类加载所有jar文件中的类。如果将加载不存在(例如一个资源包)类然后将其加载所有jar文件。这减少对小带宽非常大的开始时间。

We have a large Java application that run as applet or Java Web Start. And it grow more and more. Typical a user need only a small part of the classes. Because Java does not know which class can it found in which jar file that it load all jar files until it find the class. If it will load a class that not exist (for example a resource bundle) then it load all jar files. This reduce the start time on a small bandwidth very large.

有一个小的框架,与如果需要,我们可以只加载插件?或者,如果需要和背景好?

Is there a small framework with which we can load the plugins only if needed? Or better if needed and on background?

当然框架不应拖延开始时间自我与它的大尺寸。

Of course the framework should not delay the start time self with it large size.

我觉得应该使用URLClassLoader的下载。

I think it should use a URLClassLoader for downloading.

推荐答案

我听说可以实现自定义类加载器,我已经看到了这个问题的教程。有了这个,你应该能控制什么获取pcisely下载了$ P $。对不起,我没有尝试过这个自己。

I've heard that you can implement custom class loaders and I've seen tutorials on this subject. With this you should be able to control what gets downloaded more precisely. Sorry, I haven't tried this myself.

这篇关于是否有Java小程序的插件框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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