Interface ExperimentalInstrumentationModule
public interface ExperimentalInstrumentationModule
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
By default every InstrumentationModule is loaded by an isolated classloader, even if multiple modules instrument the same application classloader.default void
injectClasses
(ClassInjector injector) Only functional for Modules whereInstrumentationModule.isIndyModule()
returnstrue
.Returns a list of helper classes that will be defined in the class loader of the instrumented library.
-
Method Details
-
injectClasses
Only functional for Modules whereInstrumentationModule.isIndyModule()
returnstrue
.Normally, helper and advice classes are loaded in a child classloader of the instrumented classloader. This method allows to inject classes directly into the instrumented classloader instead.
- Parameters:
injector
- the builder for injecting classes
-
injectedClassNames
Returns a list of helper classes that will be defined in the class loader of the instrumented library. -
getModuleGroup
By default every InstrumentationModule is loaded by an isolated classloader, even if multiple modules instrument the same application classloader.Sometimes this is not desired, e.g. when instrumenting modular libraries such as the AWS SDK. In such cases the
InstrumentationModule
s which want to share a classloader can return the same group name from this method.
-