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 Details

    • injectClasses

      default void injectClasses(ClassInjector injector)
      Only functional for Modules where InstrumentationModule.isIndyModule() returns true.

      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

      default List<String> injectedClassNames()
      Returns a list of helper classes that will be defined in the class loader of the instrumented library.