Eclipse书籍部分翻译(英译中)8

来源:百度知道 编辑:UC知道 时间:2024/06/09 00:49:17
Table 20-1. Built-in Buddy Policies
Description
Indicates that the standard Java boot classloader is a buddy.
Indicates that the standard Java extension classloader is a buddy. This policy is a superset of the boot policy.
Indicates that the standard Java application classloader is a buddy. This policy is a superset of the ext policy.
Indicates that the plug-in's parent classloader is a buddy. By default, the parent classloader is the standard Java boot classloader. Plug-in classloader parentage is controlled on a global basis by setting the osgi.parentClassloader system property.
Consults all plug-ins that directly or indirectly depend on the current plug-in. Note that this casts a rather wide net and may introduce performance problems as the number of plug-ins increases.
Is similar to the dependent policy, but only dependent plug-ins that have explicitly registered themselves as buddies of the current plug-in are consulted.
One plug-in can

表20-1 。内置的buddy政策
说明
表明该标准的Java启动类加载器是一个buddy。
表明该标准的Java扩展类加载器是一个buddy。这一政策的超引导政策。
表明该标准的Java应用类加载器是一个buddy。这一政策的超转政策。
表明该插件的父母类加载器是一个buddy。默认情况下,母公司类加载器是标准的Java启动类加载器。插件类加载器控制的父母在全球基础上通过设置osgi.parentClassloader系统的财产。
征询所有插件,直接或间接依赖于当前的插件。请注意,此投下了相当广泛的净,并可能引进性能问题的一些插件增加。
类似依赖的政策,但只能依赖插件,明确注册自己的buddy当前的插件进行协商。
一个插件,可以申请若干政策简单地列出他们的Eclipse的BuddyPolicy线MANIFEST.MF 。 Eclipse的每一个政策叫反过来,直到阶级或发现所有的政策进行了协商。
好友Classloading考虑
作为强大和有用的buddy classloading是,它仍是一个机制的最后手段。有一些问题,你应该认真考虑使用前buddy在您的系统:
•buddy classloading背道而驰的概念组成部分, Eclipse的企图保持,而不是特别适合动态environmentsparticularly的buddy可以在那里完全卸载。
•buddy classloading也招致各种性能的成本。例如,当一个不正常的classload在一个插件使用buddy装载,政策的buddy引用。典型的Java资源束装原因三个classload失败和一些号码资源负载的失败,最后获得理想的资源。所有这些失败的重复buddy搜索。