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.
字节码插装:该流程将字节码注入到应用程序类中。
Running: the GBean is in the running state, coordinating the application classes that it contains.
运行状态:GBean处在运行状态,协调其包含的应用程序类。
The only way to resolve class visibility problems is to ensure that all the application classes are visible.
解决类可视性问题的惟一方法是确保所有的应用程序类都可见。
This is normally what we want, and is ideal for configuring application classes that the framework does not know about.
这通常就是我们想要的,并且对于配置那些框架并不了解的应用程序类,也是理想的。
To accomplish my goal of intercepting the classloading process we need to go a step further, by defining and using our own classloader for the application classes.
为了实现拦截类加载过程的目标,我们需要采取进一步的动作,对应用程序类定义和使用我们自己的classloader。
The framework somehow needs to get data into and out of the application classes in a consistent manner, without forcing the application classes to follow a rigid model.
框架出于某种原因需要以一致的方式与应用程序类交换数据,而不是强制应用程序类遵循严格的模型。
The second was that it would be fast, using bytecode enhancement to add the binding code directly to the application classes (as opposed to the less invasive but slower technique of reflection).
第二个目标是:它应当迅速,使用字节码增强直接把绑定代码添加到应用程序类(与侵入性较小但是较慢的反射技术相反)。
As implemented in traditional object-oriented programming, these concerns are handled as individual instances, introducing potentially unrelated code (that is, clutter) into application classes.
就像在传统面向对象编程中实现的那样,这些关注点是作为单独的实例处理的,有可能在应用程序类中产生互不相关的代码(就是混乱)。
Cloudscape.ajax package — the application classes including the applet, a controller servlet, and classes to access the Derby database through the EmbeddedDataSource as well as an XML helper class.
ajax包——应用程序类,包括applet、一个控制器servlet以及用于通过EmbeddedDataSource访问Derby数据库的类,还有一个xml辅助类。
So whilst in a traditional application, classes from a logging library, a client and server JAR may be loaded by the same class loader, in an OSGi module system, each would be loaded by their own.
因此,尽管在传统应用中,来自logging类库、client和serverJAR中的类都是由同一个类加载器加载的,但在OSGi模块系统中,他们都是由自己的类加载器加载的。
So whilst in a traditional application, classes from a logging library, a client and server JAR may be loaded by the same class loader, in an OSGi module system, each would be loaded by their own.
因此,尽管在传统应用中,来自logging类库、client和serverJAR中的类都是由同一个类加载器加载的,但在OSGi模块系统中,他们都是由自己的类加载器加载的。
应用推荐