Interface BootstrapPackagesBuilder

All Known Implementing Classes:
BootstrapPackagesBuilderImpl

public interface BootstrapPackagesBuilder
This interface exposes a way to define which packages/classes are present in the bootstrap class loader.

This interface should not be implemented by the javaagent extension developer - the javaagent will provide the implementation.

  • Method Summary

    Modifier and Type
    Method
    Description
    add(String classNameOrPrefix)
    Mark classNameOrPrefix as one that belongs to the bootstrap class loader.
    addAll(Collection<String> classNamesOrPrefixes)
    Mark all elements of classNamesOrPrefixes as ones that belongs to the bootstrap class loader.
  • Method Details

    • add

      @CanIgnoreReturnValue BootstrapPackagesBuilder add(String classNameOrPrefix)
      Mark classNameOrPrefix as one that belongs to the bootstrap class loader.
      Returns:
      this
    • addAll

      @CanIgnoreReturnValue BootstrapPackagesBuilder addAll(Collection<String> classNamesOrPrefixes)
      Mark all elements of classNamesOrPrefixes as ones that belongs to the bootstrap class loader.
      Returns:
      this