I'll demonstrate how a JDBC client can be instrumented using the concept of class wrapping.
我将展示如何使用类包装的概念插装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部分中了解更多关于截取、字节码插装和类包装的信息。
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.
类包装:用另一个包含工具逻辑的类包装或替换目标类。
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.
类包装:该流程使用另一个类来包装或替换目标类,前者实现了相同功能,同时也包含了插装。
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.
类包装:该流程使用另一个类来包装或替换目标类,前者实现了相同功能,同时也包含了插装。
应用推荐