For example, the first class load from each JAR on the application classpath is always loaded from disk and stored, regardless of whether it exists in the cache or not.
例如,从应用程序类路径中的每个JAR装载的第一个类总是从磁盘装载并存储,无论它是否在缓存中存在。
We use dynamic class loading to load user libraries.
我们使用动态类加载来加载用户的库。
Finally, you'll see that all the previous listings explicitly load the class definition files, before parsing the XML definitions and data.
最后,您将看到,在解析xml定义和数据之前,上文中的所有清单都可以显式地加载类定义文件。
The First time value is the time taken for constructing the first reflection replacement class, which includes the time to load and initialize the classes in the framework code.
第一个时间值是构建第一个反射替代类所花费的时间,这个时间包括装载和初始化框架代码中的类的时间。
The JVM detects filesystem updates by storing timestamp values into the cache and comparing the cached values with actual values on each class load.
J VM探测文件系统更新的方法是,将时间戳值存储在缓存中并在装载每个类时比较缓存的值和实际值。
It will cause problems when you load the wrong class or the wrong version of a class.
这样做,一旦加载了错误的类或错误版本的类,就会出问题。
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.
您迟早(通常很快)会在您想都想不到的地方加载类的一个错误版本的类并会为此付出大量的调试时间。
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.
例如,一个JVM实例可能从磁盘的某个特定位置加载类,而后面一个实例可能从不同的位置甚至网络加载该类。
Note that class loading can be performed in a lazy manner and therefore some parts of the class loading process may be done on first use of the class rather than at load time.
请注意可以用惰性方式执行类装入,所以类装入过程的某些部分可能在第一次使用类的时候才执行,而不是在装入时执行。
When there is a hierarchy of class loaders, the root class loader, which is the bootstrap class loader, attempts to load the class first.
当类加载器存在一个层次结构时,根类加载器(即引导类加载器)将首先尝试加载类。
A modified class loader USES template files that look almost exactly like ordinary class files except for "holes" in the constant pool that are filled in at load time for each instantiation class.
修改的类装入器使用看上去几乎与普通类文件完全一样的模板文件,不同的是这个模板文件在常量池中有一些“洞”,在装入时为每个实例化类填充这些“洞”。
As with explicit class loading, if the class is already loaded, then a reference is simply returned; otherwise, the loader goes through the delegation model to load the class.
与显式类装入一样,如果类已经装入了,那么只是返回一个引用;否则,装入器会通过委托模型装入类。
In other words, when two class loaders load different classes (that is, different bytecodes) with the same name, class loader constraints guarantee that there will be no type mismatch between them.
换句话说,当两个类装入器用相同的名称装入不同的类时(也就是不同的字节码),类装入器约束保证了它们之间不会有类型不匹配。
For example, a class loader could first load a class explicitly and then load all of its referenced classes implicitly.
例如,类装入器可能先显式地装入一个类,然后再隐式地装入它引用的所有类。
By doing this, you obtain a dynamic interpretation of the name of the class to load.
这样就可以实现要加载的类名的动态解释。
If the class is already loaded, then a reference is simply returned; otherwise, the loader goes through the delegation model to load the class.
如果类已经装入,那么只是返回一个引用;否则,装入器会通过委托模型装入类。
When a native method is invoked, the class loader attempts to load the native library that defines that method.
当调用本机方法时,类装入器会尝试装入定义了该方法的本机库。
A class loader first determines if it has been asked to load this same class in the past.
类装入器首先判断要求它装入的类是否与过去装入的类相同。
By reading the content of this XML file, the application object learns about the name of the assembly to load and the class to pick up in it.
通过阅读XML文件内容,应用程序对象知道了相应的程序集名称和其中要找的类。
Because the parent class loader is always given the opportunity to load a class first, the class is loaded by the class loader nearest the root.
因为父类类装入器总是先得到装入类的机会,所以类装入器装入的类最靠近根。
If the class hasn't been loaded yet, the class loader will load it now and return the newly constructed class instance.
如果类未被装入,类装入器将现在装入并返回新创建的类实例。
Listing 4 provides enough information for Jenabean to save and load instances of the Person class reliably.
清单4为Jenabean提供足够的信息来可靠地保存和装载person类实例。
Which ActiveRecord class creates the most load on the database?
哪个ActiveRecord类对数据库造成了最多负载?
If these classes are available in the classpath, the parent of the URLClassLoader instance, which is the system class loader, will load them.
如果这些类在类路径中可用,URLClassLoader实例的父加载器(即系统类加载器)将加载它们。
The DataReader class can incrementally load the results of the same query and present a single row at a time to an application.
datareader类可以递增地加载同一查询的结果,并且一次向应用程序提交单个行。
Either way, it lists out the paths actually being used, then creates an instance of the VerboseLoader class and uses it to load the target class named on the command line.
不管采用哪种方式,它都会列出实际正在使用的路径,然后创建VerboseLoader类的一个实例,并使用该实例来加载命令行上指定的目标类。
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.
每个类加载器有一个父类加载器,在尝试加载类本身时,先将类搜索和类加载委托给它的父加载器,即父加载器优先(parent-first)委托。
You might recall that the xm builder I wrote in previous columns provided both a class name (to load the plug-in) and a project nature (to decide whether it's worth loading the plug-in) in plugin.xml.
您可能还记得上一期文章中编写的xmbuilder,它在plugin . xml中提供了类名(以便加载插件)和项目特性(确定是否需要加载该插件)。
To apply this theme to the sample, use the StyleManager class to load BSpace_Skin.swf at runtime as shown in Listing 10.
要向示例应用此主题,请使用StyleManager类在运行时加载bspace_skin . swf,如清单10中所示。
This tells the class loader that will load our Grails app, to ignore any classes from these packages available to the parent class loader (i.e., the container's class loader).
这将告诉装载Grails应用程序的类装载程序忽略这些包中可用于父类装载程序(即,容器的类装载程序)的所有类。
应用推荐