通过添加包装程序类,您打破了子类型的多态性。
By adding a wrapper class, you have broken subtype polymorphism.
接下来,必须定义应用程序类。
使TLD文件和处理程序类可访问。
它定义了JDBC驱动程序类。
更糟的是,包装程序类破坏了身份。
步骤3a:实现处理程序类。
我们已经写完了驱动程序类。
这个基类将使编写处理程序类更加容易。
This is a base class that makes writing handler classes easier.
这个清单给出单元测试使用的实用程序类。
The listing shows a utility class that gets used by the unit test.
构建模型和实用程序类。
编写一个会话控制程序类
我们要做的第一件事是编写标记处理程序类。
The first thing we need to do is write the tag handler class.
请将清单4中所示的代码添加处理程序类中。
图2中带绿色阴影的类是主要的应用程序类。
The green-shaded classes in Figure 2 are the main application classes.
该处理程序类的源代码如 清单2 所示。
使用Browse按钮选择中介处理程序类。
Use the Browse button to select the mediation handler class.
它定义了几个字段并提供一个应用程序类名称。
It defines a few fields and provides an application class name.
功能逻辑和本地化框架被抽象到处理程序类中。
The functional logic and localization framework are abstracted into a handler class.
调用处理程序类是处理所有数据验证逻辑的地方。
The invocation handler class is where all of the data validation logic is handled.
第三部分将继续检测应用程序类并测试该应用程序。
The third part continues to examine the application classes and tests the application.
字节码插装:该流程将字节码注入到应用程序类中。
Bytecode instrumentation: This is the process of injecting bytecode into the application classes.
然后将在以前使用的DB实用程序类中调用新方法。
It then calls a new method in the DB utility class we have used previously.
因此我们的文件表内容提供程序类与清单8 类似。
So our file table content provider class looks like Listing 8.
获得的每个动态服务都将调用对应的服务实用程序类。
For each dynamic service obtained, the corresponding services utility class is invoked.
在有网关的应用服务器上安装处理程序类及其依赖性。
Install the handler class and dependencies in the application server that is hosting the gateway.
主要目的是全面了解一个重要应用程序类的管理功能。
The major takeaway is an end-to-end understanding of management of an important application class.
我们还可以用这个方法测试非可视化应用程序类中的值。
We can in this way test values of non-visual application classes as well.
需要DB 2驱动程序类来配置与DB 2数据库的连接。
The DB2 driver classes are required to configure a connection with the DB2 database.
调用处理程序类必须知道如何处理所有接口类型的方法调用。
The invocation handler class must know how to deal with method invocations of all the interface types.
这个实用程序类可以包含针对所有这类关键字或函数的函数。
This utility class can have functions for all such keywords or functions.
应用推荐