因为这些是可信的系统类,所以引导程序装入器跳过了对常规(不可信)类所做的大量验证。
Because these are trusted system classes, the bootstrap loader skips much of the validation that gets done for normal (untrusted) classes.
每个类装入器还保留对父类装入器的引用,这样就定义了类装入器树,树根为引导程序装入器。
Each class loader also keeps a reference to a parent class loader, defining a tree of class loaders with the bootstrap loader at the root.
我们希望这些文章提供的知识能够让您更好地理解类装入,并在应用程序中更好地利用类装入器。
We hope that the insights provided by these articles will enable you to better understand class loading and to make better use of class loaders in your applications.
类装入器的灵活性甚至允许动态地重新装入已修改的代码,同时应用程序继续执行。
The flexibility of class loaders even allows dynamic reloading of modified code while an application continues to execute.
JVM验证类装入器中所有的类并确保应用程序不会执行任何危险操作。
The JVM verifies all classes in class loaders and ensures that applications do not perform any dangerous operations.
该框架代码本身也将使用一个或多个其它类装入器,同样用来防止对应用程序产生的或来自应用程序的干扰。
The framework code itself will also use one or more other class loaders, again to prevent interference to or from applications.
通过动态链接装入器,将动态库映射进应用程序的可执行内存中。
The dynamic libraries are mapped into the application execution memory by the dynamic linking loader.
这些方法允许该框架设置类装入器,使得在运行每个应用程序中的代码时可以将类装入器用于该应用程序。
These methods let the framework set the class loader to be used for each application while running code from that application.
引导程序不是唯一的类装入器。
该方法的缺点是:修改的类装入器必须与其应用程序一起分布,以在较旧的JVM上运行。
The disadvantage of this approach is that the modified class loader would have to be distributed along with the application for it to run on older JVMs.
应用程序之所以挂起,是因为每个线程都拥有一个类装入器上的锁,并想得到另一个类装入器上的锁,如图2的时间线图所示。
The application hangs because each thread owns a lock on one of the class loaders and wants the lock on the other class loader, as illustrated in the timeline diagram in Figure 2.
例如,在图1显示的Tomcat类装入器层次结构中,由common类装入器装入的类决不能(根据名称)直接访问由Web应用程序装入的类。
In the Tomcat hierarchy of class loaders shown in Figure 1, for instance, classes loaded by the Common class loader will never be able to directly access (by name) classes loaded by a Web application.
使用相同的动态链接装入器在应用程序运行之后将dll映射进应用程序的内存。
The same dynamic linking loader is used to map a DLL into the application's memory after it is running.
系统(system)类装入器(也称作应用程序类装入器)负责从CLASSPATH环境变量指定的路径装入代码。
The system class loader (also known as the application class loader) is the class loader responsible for loading code from the path specified by the CLASSPATH environment variable.
图1描绘了将该应用程序装入Web浏览器时用户首先看到的画面。
Figure 1 depicts what the user first sees upon loading the application in a Web browser.
在建立Geronimo运行时环境时,启动控制台将显示装入和启动的模块、连接器和应用程序。
The startup console shows modules, connectors, and applications that are loaded and started as the Geronimo runtime environment is established.
启动控制台将显示装入和启动的许多模块、连接器和应用程序并从中创建Geronimo运行时环境。
The startup console shows a number of modules, connectors, and applications that are loaded and started and from which the Geronimo runtime environment is created.
Streamlined观察Rails的命名规范,并在处于开发模式时频繁地重新装入应用程序对象,这样只要刷新浏览器,就可以看到最新的代码变化。
Streamlined observes Rails naming conventions and reloads application objects frequently when in development mode, so you can simply reload your browser to see most coding changes.
为了确保Web应用程序类装入器获得portletTLD文件,您还必须直接声明 portlettaglib,如清单10 所示
To ensure that the Web application class loader picks up the portlet TLD files, you must also declare the portlet taglib directly, as shown in Listing 10.
如果DOS找到了相匹配的文件,它就把文件从磁盘装入命令处理程序的暂驻部分,如果需要,还要将其装入存储器中,然后执行它。
If DOS finds the matching file, it loads the file from disk into the transient portion of the command processor and available memory, if required, and then executes it.
元素将告诉服务器先装入父类(在本例中,为Pluto门户驱动程序及其依赖性)。
The element tells the server to load the parent classes (in this case, the Pluto portal driver and its dependencies) first.
应用程序还可以定义它们自己的用于特殊用途(例如运行时类的重新装入)的类装入器。
Applications can also define their own class loaders for special purposes (such as run-time reloading of classes).
开发人员可以把应用程序依赖的类库装载到一个XML解析器中,甚至把源代码也装入。
The developers can ship the class library that the application depends on an XML parser, for example with the code.
只有一个注入器。即使在多模块的应用程序中,每样东西也都被装入一个巨大的命名空间中。
There is exactly one injector. Even in multi-module applications, everything is poured into one big namespace.
一种将符号形式(类似于汇编语言)的微程序翻译成位模式的程序,然后位模式被装入控制存储器。
A program that translates microprograms in symbolic form (similar to assembly language) into bit patterns that are then loaded into the control store.
在计算机程序执行中,把一个计算机程序段装入在此以前被当前不需要的程序部分所占用的存储器区域中。
In the execution of a computer program, to load a segment of the computer program in a storage area hitherto occupied by parts of the computer program that are not currently needed.
在计算机程序执行中,把一个计算机程序段装入在此以前被当前不需要的程序部分所占用的存储器区域中。
In the execution of a computer program, to load a segment of the computer program in a storage area hitherto occupied by parts of the computer program that are not currently needed.
应用推荐