这些文件在安装时创建,保存着系统类的内部表示方式。
Created at installation time, these files store an internal representation of the system classes.
运行清单6中所示的命令来编译系统类并创建WAR文件。
Run the command shown in Listing 6 to compile the system classes and create the WAR file.
要部署业务对象,需要使用插件描述符将实现类放到系统类路径中。
To deploy a business component, the implementation classes need to be made available on the system classpath with a plug-in descriptor.
这一部分探讨了过程的头两步:简化持久性和系统类以及简化层次结构。
This tip explores the first two steps of that process: simplifying persistence and system classes and simplifying hierarchies.
这是因为B不在系统类装入器或者它的双亲或祖先类装入器的类路径中。
This is because B is not in the classpath of the system class loader or its parent or ancestor class loaders.
这里,我们使用反射的原因是因为我们已经使用非系统类加载器加载了应用程序。
Here, we use reflection because we have loaded the application using a class loader that is not the system class loader.
IntegratedFileSystem中的文件通过文件系统类访问。
Files in the Integrated file system are accessed using the file system classes.
同样,不能加载这些JAR文件的多个版本,因为类都位于系统类加载器名称空间中。
Also, you will not be able load multiple versions of these JAR files as the classes will all be in the system class loaders namespace.
相反,它有一组类装入器,彼此互不相关,但是有共同的双亲(通常是系统类装入器)。
Instead, it has a set of class loaders that are unrelated except that they have the same parent (usually the system class loader).
因为这些是可信的系统类,所以引导程序装入器跳过了对常规(不可信)类所做的大量验证。
Because these are trusted system classes, the bootstrap loader skips much of the validation that gets done for normal (untrusted) classes.
API工具现在可以分析系统类库的使用情况及代码访问运行时不存在的成员时所产生的问题。
API tools can now analyze use of system libraries and create problems when code accesses members that may not be present at runtime.
例如,系统类是不可修改的,而用户定义接口类虽然可以修改,但是不能包含实际的实现代码。
System classes, for instance, are not modifiable, while user-defined interface classes can be modified, but can't include actual implementation code.
这种方法的问题是LogManager实例使用了系统类的装载程序从配置文件中对类进行实例化。
The problem with this approach is that the LogManager instance uses the system class loader to instantiate classes from the configuration file.
这个类装入器可以从启动的类路径装入核心系统类,通常是位于jre/lib目录的JAR文件。
This class loader loads the core system classes from the boot classpath, which is normally the JAR files located in the jre/lib directory.
如果这些类在类路径中可用,URLClassLoader实例的父加载器(即系统类加载器)将加载它们。
If these classes are available in the classpath, the parent of the URLClassLoader instance, which is the system class loader, will load them.
为了避免这个问题,凡是要进行序列化的类,都应当由不需要被垃圾收集的类装入器装入——例如由系统类装入器装入。
To avoid this problem, any classes that are to be serialized should be loaded by a class loader that does not need to be garbage collected — by the system class loader, for example.
类a在系统类装入器的类路径中,而A的超类b,在用户自定义的类装入器的类路径中,这个类装入器是系统类装入器的孩子。
Class a is on the classpath of the system class loader, and a's superclass, B, is on the classpath of a user-defined class loader, which is a child of the system class loader.
下面的代码对系统类Date 进行stub 以便总是返回相同的日期,比如GroundHog Day,如清单6 所示。
The following code will stub the system class Date to always return the same date, say Ground Hog Day, as in Listing 6.
Linux经常被称作是类“Unix”操作系统。
几十年前我们就知道噪音可以提升某些开关类系统的效能。
We have known for decades that the presence of noise can improve the performance of certain switch-like systems.
如果不同的部分必须同时运行,那么在类unix系统中使用进程(不是线程)。
If different parts must run concurrently, use processes (not threads) on UNIX-like systems.
在UNIX和UNIX 类的系统上,把许可设置成 600。
当我们从序列图转到类图时,我们的系统分析就更精细了。
As we move from the sequence diagram to the class diagram, our system analysis becomes more refined.
作为一个面向对象系统,类是以数据和对数据进行操作的方法的集合。
In an object-oriented system, a class is a collection of data and methods that operate on that data.
图3显示的是零售商系统的类图。
存储组包含多个存储系统和存储类。
Storage group contains multiple storage systems and storage classes.
它可有一个或多个存储系统及存储类。
It can have one or more storage systems and storage classes.
信息包括线程、锁、堆栈等方面的数据,以及关于系统中类装入器的丰富信息。
This information includes data about threads, locks, stacks, and so on, as well as a rich set of information about the class loaders in the system.
在OO系统中,类如果没有事情可做就不应该存在;必须有职责(操作)。
In an OO system, a class shouldn't exist unless there's something for it to do; there must be responsibilities (operations).
对于JMS,您需要告诉系统使用哪个类来进行此转换。
In the case of JMS, you need to tell the system which class to use to do this transformation.
应用推荐