@HashCodeAndEqualsPlugin.Enhance public static class ClassFileLocator.ForInstrumentation.ClassLoadingDelegate.Default extends Object implements ClassFileLocator.ForInstrumentation.ClassLoadingDelegate
| Modifier and Type | Class and Description | 
|---|---|
protected static class  | 
ClassFileLocator.ForInstrumentation.ClassLoadingDelegate.Default.BootLoaderProxyCreationAction
A privileged action for creating a proxy class loader for the boot class loader. 
 | 
ClassFileLocator.ForInstrumentation.ClassLoadingDelegate.Default, ClassFileLocator.ForInstrumentation.ClassLoadingDelegate.Explicit, ClassFileLocator.ForInstrumentation.ClassLoadingDelegate.ForDelegatingClassLoader| Modifier and Type | Field and Description | 
|---|---|
protected ClassLoader | 
classLoader
The underlying class loader. 
 | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
Default(ClassLoader classLoader)
Creates a default class loading delegate. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
ClassLoader | 
getClassLoader()
Returns the underlying class loader. 
 | 
Class<?> | 
locate(String name)
Loads a class by its name. 
 | 
static ClassFileLocator.ForInstrumentation.ClassLoadingDelegate | 
of(ClassLoader classLoader)
Creates a class loading delegate for the given class loader. 
 | 
protected final ClassLoader classLoader
protected Default(ClassLoader classLoader)
classLoader - The class loader to be queried.public static ClassFileLocator.ForInstrumentation.ClassLoadingDelegate of(@MaybeNull ClassLoader classLoader)
classLoader - The class loader for which to create a delegate or null to use the boot loader.public Class<?> locate(String name) throws ClassNotFoundException
locate in interface ClassFileLocator.ForInstrumentation.ClassLoadingDelegatename - The name of the type.ClassNotFoundException - If a class cannot be found.@MaybeNull public ClassLoader getClassLoader()
getClassLoader in interface ClassFileLocator.ForInstrumentation.ClassLoadingDelegateCopyright © 2014–2023. All rights reserved.