Bootstrap isn't the only class loader.
引导程序不是唯一的类装入器。
NextGen example: Modified class loader.
NextGen示例:修改的类装入器。
Avoiding class loader constraint violations.
避免类装入器约束违反。
Resolving class loader constraint violations
解决类装入器约束违反
Lists of classes loaded by each class loader.
每个类装入器装入的类的列表。
Next is the class loader cache initialization.
下一步是类装载器缓存初始化。
This particular class loader has some special features.
这个特殊的类装入器有一些专门的特性。
The garbage collector interacts closely with the class loader.
垃圾收集器与类装入器的交互很密切。
Notice that there is no output for the bootstrap class loader.
请注意,引导类装入器没有输出。
The extension class loader (sun/misc/Launcher$ExtClass loader)
扩展类装入器(sun/misc/Launcher$ExtClassLoader)
Each class has a reference to the class loader that defined it.
每个类都有一个对其类装载器的引用。
For example, suppose you have a class loader called MyClassLoader.
例如,假设您有一个名为MyClassLoader的类加载器。
The jboss-app.xml file specifies the class loader for this application.
jboss-app.xml文档为该应用指定了类加载器,每个EAR应用的类加载器应该有一个唯一的名称。
Another exception that can be thrown by the class loader is ClassCastException.
类装入器能够抛出的另一个异常是ClassCastException。
Graph showing JIT compilations, class loader information, and garbage collection.
展示JIT编译、类加载器信息和垃圾收集的图形。
By default, this class loader is the parent of any class loader created by the user.
默认情况下,这个类装入器是用户创建的任何类装入器的父类。
It also indicates which class loader loads a given class and where it loads it from.
它还可以指出指定类是由哪个类装入器装入的、从哪里装入的。
The ClassLoader loaded classes section lists the classes loaded by each class loader.
类装入器装入的类部分列出了每个类装入器装入的类。
Classes accessed from other bundles are delegated to the other bundle's class loader.
需要被其他bundle访问的类则被委派(delegated)给这些其他bundle的类装载器。
The parent of this class loader will be the class loader of the current thread context.
类加载器的父类加载器将是当前线程上下文的类加载器。
A class loader first determines if it has been asked to load this same class in the past.
类装入器首先判断要求它装入的类是否与过去装入的类相同。
The class loader has a fairly tight security manager in place that restricts malicious calls.
类加载器有一个十分严格的安全管理器来限制恶意调用。
When the class loader is dereferenced, the classes that it loaded are not garbage collectable.
当取消对类装入器的引用时,它装入的类就变成无法进行垃圾收集的了。
The method now delegates to its parent class loader before attempting to find the class itself.
方法现在在试图自己找到类之前,先委托给自己的双亲类装入器。
This implementation assumes that all classes required are on the classpath of this class loader.
这个实现假设所有需要的类都在这个类装入器的类路径中。
Because all four conditions hold, this situation results in a class loader constraint violation.
因为四个条件全部成立,所以这种情况会导致类装入器约束违反。
But how can that work if the class loader looks for existing class files for each class it loads?
但是,如果类装入器为它所装入的每个类查找现有类文件,那么它会如何工作呢?
Instead, you need to use a class loader to find the class information. Here's one way to do that.
实际上,您需要使用一个类装入器来查找类信息。
A class loader namespace is a combination of a class loader and all the classes that it has loaded.
类装入器的命名空间是类装入器和它装入的所有类的组合。
If either of the above rules are violated, then a ClassCastException is thrown by the class loader.
如果违反了以上任何一条规则,那么类装入器就会抛出ClassCastException。
应用推荐