加载类的延迟通常高达10毫秒。
The delay to load a class can commonly be as high as 10 milliseconds.
Tomcat首先从应用程序加载类。
在一个静态初始化块中,在加载类时执行。
In a static initializer block, which executes when the class is loaded.
最后,从数据库加载类后调用onload。
Finally, onLoad gets called when the class gets loaded from the database.
Ruby通常在加载类时使用宏来为类添加功能。
Ruby often USES macros to add capabilities to each class as it's loaded.
对它运行一些事件,观察它加载类、编译字节代码以及管理内存。
Run some events through it, watch it load classes, compile bytecode, and of course, manage memory.
编译器生成一些代码,用于在没有加载类时加载并解析类。
The compiler generates code that causes the class to be loaded and resolved, if it has not yet been loaded.
上面的列表组成至少4作为你的自动加载类不同的责任。
The list above constitutes at least 4 different responsibilities for your Autoload class.
将注释保留在编译后的类文件中,并在第一次加载类时读取它。
Retain the annotation in the compiled class file of the annotated class, and read it when the class first loads.
JVM负责从应用程序的类使用的库向应用程序和类中加载类。
The JVM is responsible for loading the classes in your application and classes from libraries that your application's classes use.
hidden-classes 参数标识不应该从父配置加载类的名称。
The hidden-classes identify class names that should not be loaded from the parent configurations.
为了给重加载类提供反射api支持,该API调用的结果也相应地被修改。
To support the reflection API for reloaded classes, results of the API calls are modified accordingly.
具体做法是加载类路径中可见的所有plugin . xml文件。
It does so by loading all the plugin.xml files that are visible in classpath.
加载类之后,静态初始化器首先运行,紧接着运行的是main方法(也是静态的)。
The static initializer runs first, as the class is loaded, followed by the main method (which is also static).
当类加载器存在一个层次结构时,根类加载器(即引导类加载器)将首先尝试加载类。
When there is a hierarchy of class loaders, the root class loader, which is the bootstrap class loader, attempts to load the class first.
最后,您将看到,在解析xml定义和数据之前,上文中的所有清单都可以显式地加载类定义文件。
Finally, you'll see that all the previous listings explicitly load the class definition files, before parsing the XML definitions and data.
不同的应用程序加载类可以使相同的ejb类以及ejb类使用的实用程序类的不同版本得以分离。
Different application class loaders may be used for isolating multiple versions of the same EJB classes, and the utility classes used by the EJB classes.
像前面两种情况一样,这种情况下会重新加载类,然而,这里是有目的地卸载类,再去重新加载该类。
Like the previous two cases, the present case involves newly loaded classes. Here, however, classes are ditched on purpose, while a new copy of the class loads.
您迟早(通常很快)会在您想都想不到的地方加载类的一个错误版本的类并会为此付出大量的调试时间。
Sooner or later (probably sooner), you'll load the wrong version of a class from a place you aren't even thinking about and waste hours debugging.
不过这种方式重新加载类存在一个普遍问题,即类的新老版本可能同时存在,框架必须小心处理这一问题。
A general problem with reloading classes this way is, that the old and new class versions are available at the same time and have to be carefully handled by the framework.
一种在应用程序的时间敏感型部分避免类加载延迟通用技术是,在应用程序启动或初始化期间预先加载类。
A generic technique to avoid class-loading delays during the time-sensitive parts of your application is to preload classes during application startup or initialization.
为了让此方法尽量与上下文无关,我们从加载类的ClassLoader中抓取文件作为InputStream。
In order to keep this method as context-free as possible, we grab the file as an InputStream out of the ClassLoader that loaded the class.
例如,一个JVM实例可能从磁盘的某个特定位置加载类,而后面一个实例可能从不同的位置甚至网络加载该类。
For example, one JVM instance might load a class from a particular location from disk, and a subsequent instance might load that class from a different location or even over the network.
第一,OSGi规范决定如何为osgi捆绑包加载类,这是一个重要特性,允许模块拥有不同的库,而且这些库能够很好地相互协作。
First, the OSGi specification determines how classes are loaded for OSGi bundles, which is an important feature that allows modules to have different libraries yet function well together.
每个类加载器有一个父类加载器,在尝试加载类本身时,先将类搜索和类加载委托给它的父加载器,即父加载器优先(parent-first)委托。
Every class loader has a parent class loader, which delegates the searching and loading of a class to its parent (parent-first delegation) before it attempts to load the class itself.
公共语言运行时使用元数据来完成以下任务:查找和加载类,在内存中安排实例,解析方法调用,生成本机代码,强制安全性,以及设置运行时上下文边界。
The runtime uses metadata to locate and load classes, lay out instances in memory, resolve method invocations, generate native code, enforce security, and set run-time context boundaries.
我们使用动态类加载来加载用户的库。
您是否在生产中使用逆向类加载?
这使得在必要时可重新加载单独的jsp类,而不会影响到任何其它加载的jsp类。
This allows a single JSP class to be reloaded when necessary, without affecting any other loaded JSP classes.
但是,本地加载的类被授予对某个目录的读许可权。
Classes loaded locally, however, are given read permissions for a certain directory.
应用推荐