Class wrapping: This is the process of wrapping or replacing a target class with another class that implements the same functionality but also contains instrumentation.
类包装:该流程使用另一个类来包装或替换目标类,前者实现了相同功能,同时也包含了插装。
The idea behind class wrapping is that a target class can be wrapped in a layer of instrumenting code that retains the same external behavior as the class that's wrapped.
类包装背后的理念是:目标类可以包装在一层插装代码中,后者具有与被包装的类相同的外部行为。
Class wrapping: wrapping or replacing a target class with another class that contains instrumentation logic.
类包装:用另一个包含工具逻辑的类包装或替换目标类。
The addOrderFrom() method collapses to the definition of an anonymous inner class creation of the command class, wrapping the two work items.
addOrderFrom()方法成为公共类的匿名内部类创建的定义,将这两个工作项目包装起来。
The VirtualSystems class (Listings 4 and 5) implements methods to return all the necessary values, wrapping the dictionary object inside.
VirtualSystems类(清单4和5)实现了返回所有必要值的方法,并封装了字典对象。
He describes how to use class wrapping of the JDBC driver, connection, statement, and result set objects to instrument JDBC, and hence, database calls.
他介绍了如何使用JDBC驱动、连接、语句、结果集对象的类包装来工具化jdbc,并由此工具化数据库调用。
Here in Part 1, I address only source code based instrumentation; you'll read more about interception, bytecode instrumentation, and class wrapping in Part 2.
在本文的第1部分中,我只讨论基于源代码的插装;您将在第2部分中了解更多关于截取、字节码插装和类包装的信息。
I'll demonstrate how a JDBC client can be instrumented using the concept of class wrapping.
我将展示如何使用类包装的概念插装jdbc客户机。
I think I'll — I want to begin next class by wrapping up and explaining the Harlow studies in more detail and what they tell us.
下节课我会展开并解释,哈洛的研究,告诉我们的具体细节。
In part 2 he reviews post-compilation instrumentation, specifically through interception, class wrapping, and bytecode instrumentation.
第二部分中,他讨论了后编译技术工具,特别是拦截、类包装、字节码工具。
By deferring construction and initialization to the Appointment class, I make it easier to separate additional wrapping behavior (such as persistence).
通过延迟对appointment类的构建和初始化,简化了对附加包装行为(比如持久性)的分离。
This technique of wrapping invoke() calls inside the methods of a widget class enabled us to much more easily code automation that manipulated these SWT controls.
通过使用将invoke()调用封装到窗口小部件类的方法中这项技术,可以更容易地对这些 SWT 控件的自动化操作进行编码。
I'm left with some ugly boilerplate code because of the anonymous inner class wrapping this method's real purpose - the two lines of code that appear in the body of the addOrderFrom method.
考虑到包装这个方法的匿名内部类的真正用途,我留下了几行难看的样板代码—addorderfrom方法体中的两行代码。
This step involves putting a wrapping around the widget and giving it the class lotusDialogBorder and max-width and width attributes.
这一步涉及到在小部件周围放置一个包装的,为其提供lotusdialogborder类与max -width和width属性。
JAX-RPC allows the wrapping of a web service invocation into a so-called "proxy" or "stub" class (see Figure 2).
JAX - RPC允许把web服务调用打包为一个所谓的“代理”或“存根”类(请参见图2)。
Wrapping a frequently used DLL function in a managed class is an effective approach to encapsulate platform functionality.
要封装平台功能,一种有效的方法是将常用的DLL函数包装在托管类中。
Wrapping a frequently used DLL function in a managed class is an effective approach to encapsulate platform functionality.
要封装平台功能,一种有效的方法是将常用的DLL函数包装在托管类中。
应用推荐