Interface ClassFileLocator.ForInstrumentation.ClassLoadingDelegate

All Known Implementing Classes:
ClassFileLocator.ForInstrumentation.ClassLoadingDelegate.Default, ClassFileLocator.ForInstrumentation.ClassLoadingDelegate.Explicit, ClassFileLocator.ForInstrumentation.ClassLoadingDelegate.ForDelegatingClassLoader
Enclosing class:
ClassFileLocator.ForInstrumentation

public static interface ClassFileLocator.ForInstrumentation.ClassLoadingDelegate
A delegate that is queried for loading a class.
  • Method Details

    • locate

      Class<?> locate(String name) throws ClassNotFoundException
      Loads a class by its name.
      Parameters:
      name - The name of the type.
      Returns:
      The class with the given name.
      Throws:
      ClassNotFoundException - If a class cannot be found.
    • getClassLoader

      ClassLoader getClassLoader()
      Returns the underlying class loader.
      Returns:
      The underlying class loader.