Class BootstrapPackagePrefixesHolder

java.lang.Object
io.opentelemetry.javaagent.bootstrap.BootstrapPackagePrefixesHolder

public final class BootstrapPackagePrefixesHolder extends Object
BootstrapPackagePrefixesHolder is an utility class that holds package prefixes. The classes from these packages are pushed to the bootstrap class loader.

The prefixes are loaded by AgentInstaller and consumed by class loader instrumentation. The instrumentation does not have access to the installer, therefore this utility class is used to share package prefixes.

  • Method Details

    • getBoostrapPackagePrefixes

      public static List<String> getBoostrapPackagePrefixes()
    • setBoostrapPackagePrefixes

      public static void setBoostrapPackagePrefixes(List<String> prefixes)