Package net.bytebuddy.dynamic
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A default implementation of a class loading delegate.static class
A class loading delegate that allows the location of explicitly registered classes that cannot be located by a class loader directly.static class
A class loading delegate that accounts for asun.reflect.DelegatingClassLoader
which cannot load its own classes by name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the underlying class loader.Class
<?> Loads a class by its name.
-
Method Details
-
locate
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
Returns the underlying class loader.- Returns:
- The underlying class loader.
-