检测器的class属性应当指定检测器的类名。
The detector's class attribute should specify the class name of the detector.
这个实现假设所有需要的类都在这个类装入器的类路径中。
This implementation assumes that all classes required are on the classpath of this class loader.
添加逗号和以下值(该值是新的集成验证器的类名称)。
Append a comma and the following value (which is the class name of our new integration validator).
表1总结了设置三个标准类装入器的类路径的命令行选项。
Table 1 summarizes the command-line options for setting the classpaths of the three standard class loaders.
元素指定用于实现检测器的类以及它是快速还是慢速检测器。
Element specifies the class used to implement the detector and whether it is a fast or slow detector.
属性和索引器的类可以定义额外的属性或索引器在接口上定义的访问器。
Properties and indexers of a class can define extra accessors for a property or indexer defined on an interface.
将urlprotocols . jar文件添加到服务器的类路径中。
这是因为B不在系统类装入器或者它的双亲或祖先类装入器的类路径中。
This is because B is not in the classpath of the system class loader or its parent or ancestor class loaders.
将这个.jar文件添加到验证器的类路径中,然后像往常那样运行验证器。
Add this.jar file to the validator's classpath, then run the validator as you normally would.
特别注意port属性和依赖关系,后者解释在何处可以找到回显服务器的类。
Pay special attention to the port attribute and the dependency that explains where the classes for the echo server can be found.
部署选项可用依赖于应用服务器的类装载器(classloader)模式。
The deployment options available are dependent upon the classloader mode of the application server.
Detector元素指定用于实现检测器的类以及它是快速还是慢速检测器。
The detector element specifies the class used to implement the detector and whether it is a fast or slow detector.
连接器访问存储库所需要的每个JAR文件都应该添加到应用服务器的类路径中。
Each JAR file required by your connector to access the repository should be added to the application server's classpath.
可用的部署选项取决于应用服务器的类装载器(classloader)模式。
The deployment options available are dependent upon the application server's classloader mode.
对于目标MBean属性是非标准复杂类型的情况,您需要确保定义该类型的类在收集器的类路径中。
In cases in which a target MBean attribute is a nonstandard complex type, you need to ensure that the class defining that type is in your collector's classpath.
解决这个问题的最简单方法是确保在系统中只有类的一个副本——也就是说,类只出现在一个类装入器的类路径中。
The easiest way to resolve this problem is to ensure that there is only one copy of a class in the system — that is, that the class only appears in the classpath of one loader.
类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.
在这个示例中,我们有一个数据库管理器的类,该类保持了所有到数据库的活动连接,并且提供了一个枚举所有这些连接的方法。
In this example, we have a database manager class that keeps track of all active connections to the database and provides a method for enumerating those connections.
该文件已经被修改,以便使cloudscape库(JAR文件)包含在Tomcat和所有Web应用程序公用加载器的类路径中。
This file has been modified so that the Cloudscape libraries (JAR files) are included in the class path of the loader common to Tomcat and all the Web applications.
无论如何,和Web服务一起您将使用WSDL,所以客户端能够构造它们自己的客户端调用代码,在本地类路径上不需要服务器的类来执行调用。
With Web services however, you use WSDL, so the clients are able to create their own client invocation code and need no server classes on the local classpath in order to perform an invocation.
请注意,Log4J. properties文件需要在类路径上,以指定要使用的搜索路径,这里是通过向应用程序服务器的类路径添加文件夹来实现的。
File needs to be on the classpath to specify the appenders to use, which is done here by adding a folder to the application server's classpath. To do this.
默认情况下,这个类装入器是用户创建的任何类装入器的父类。
By default, this class loader is the parent of any class loader created by the user.
每个类装入器还保留对父类装入器的引用,这样就定义了类装入器树,树根为引导程序装入器。
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.
知道类装入器在哪里寻找类、特定的类是由哪个类装入器装入的,通常很有用。
It is often useful to know where class loaders look for classes and which class loader loads a particular class.
在运行网关的应用服务器上安装处理器类和所依赖的类。
Install the handler class and dependencies in the application server hosting the gateway.
这是因为类装入器只能看到它自己装入的类,或者它有引用(直接或间接)的其他类装入器装入的类。
This is because a class loader can only see classes that it loads itself or that are loaded by other class loaders to which it has a reference (either directly or indirectly).
清单2提供了用于计数器类的一个简单的类。
这些信息为本系列的下一期奠定了基础,下一期将介绍样例应用程序的视图组件和控制器类的类框架。
This information will help set the stage for the next installment of this series, which will describe the view component of the sample application and the class skeleton of the controller class.
类加载器的父类加载器将是当前线程上下文的类加载器。
The parent of this class loader will be the class loader of the current thread context.
类加载器的父类加载器将是当前线程上下文的类加载器。
The parent of this class loader will be the class loader of the current thread context.
应用推荐