Figure 1 shows the three standard class loaders
图1显示了三个标准的类装入器
Class loading in a JVM is controlled by class loaders.
装入到JVM的类是由类装入器控制的。
Here we have two user-defined class loaders, MCL1 and MCL2.
在这里有两个用户定义的类装入器,即mcl1和mcl2。
The defined class loaders and the relationship between them.
定义的类装入器和它们之间的关系。
In this example, there are only the three standard class loaders.
在这个示例中,只有三个标准类装入器。
The output will show the two different class loaders loading C.
输出会显示两个装入 C 的不同类装入器。
Multiple singletons simultaneously loaded by different class loaders.
多个单例对象被不同的类加载器同时加载。
Because class loaders tend to be small, this overhead should not be high.
因为类装入器往往比较小,所以这个开销不会大。
Problems can arise when code is moved between class loaders for any reason.
无论何种原因在类装入器之间移动代码时都会出现问题。
Other types of confusion are also possible when using multiple class loaders.
使用多个类装入器还可能引起其它类型的混淆。
These class loaders can delegate not only to their parent, but also to their peers.
这些类装入器不仅可以委托给它们的双亲,还能委托给它们的对等体。
The versions of these libraries and the class loaders are different for each platform.
这些库的版本和类加载器对于每个平台都是不同的。
The test case creates two class loaders, each with what appears to be the same classpath.
测试用例创建了两个类装入器,每个类装入器使用的类路径看起来相同。
Peer class loading does not follow the traditional hierarchical delegation structure for class loaders.
对等类装入不遵循传统的类装入器层次委托结构。
The first is to encourage additional tenure collections in the presence of large amounts of class loaders.
第一种方法是在出现大量类加载器时鼓励进行额外的保留区收集。
Table 1 summarizes the command-line options for setting the classpaths of the three standard class loaders.
表1总结了设置三个标准类装入器的类路径的命令行选项。
This is because B is not in the classpath of the system class loader or its parent or ancestor class loaders.
这是因为B不在系统类装入器或者它的双亲或祖先类装入器的类路径中。
The class loader delegation model is the graph of class loaders that pass loading requests to each other.
类装入器委托模型是把装入请求相互传给对方的类装入器图。
By using multiple class loaders within WebSphere Application Server, it is possible to avoid these conflicts.
通过在WebSphere应用程序服务器中使用多种类加载器,可以避免这些冲突。
We've also examined some of the other issues that may arise in the implicit and explicit use of class loaders.
我们还研究了在使用隐式或显式类装入器时可能出现的其他一些问题。
It is part of the JarIndex implementation and used by class loaders to speed up the class loading process.
它是JarIndex实现的一部分,并由类装载器用于加速类装载过程。
It is often useful to know where class loaders look for classes and which class loader loads a particular class.
知道类装入器在哪里寻找类、特定的类是由哪个类装入器装入的,通常很有用。
One major problem is that because the applications are deployed separately, they all use different class loaders.
一个主要的问题是,由于应用程序都是分别部署的,因此它们全都使用不同的类装入程序。
The JVM verifies all classes in class loaders and ensures that applications do not perform any dangerous operations.
JVM验证类装入器中所有的类并确保应用程序不会执行任何危险操作。
A class loaded by a class loader instance is uniquely identified by that class loaders namespace and the class name.
类加载器实例加载的类由加载器的名称空间和类名惟一标识。
Different versions of server side component classes should be isolated using different class loaders whenever possible.
服务器端组件类的不同版本应该尽量使用不同的类加载器使其分离开来。
An application class loader leak occurs when applications are restarted but their class loaders are not cleaned up.
当应用程序重启但它们的类加载器没有清理时,将发生应用程序类加载器泄露。
The transformation framework employed by the SOAP connector uses special class loaders to perform these transformations.
SOAP连接器使用的变换框架利用特殊的类加载程序来执行变换。
The IBM Verbose class Loading option is a great way to check what the classpaths for all class loaders have been set to.
IBM详细类装入选项是检查所有类装入器设置的类路径的好方法。
The flexibility of class loaders even allows dynamic reloading of modified code while an application continues to execute.
类装入器的灵活性甚至允许动态地重新装入已修改的代码,同时应用程序继续执行。
应用推荐