@HashCodeAndEqualsPlugin.Enhance public static class ClassFileLocator.ForInstrumentation.ClassLoadingDelegate.Explicit extends Object implements ClassFileLocator.ForInstrumentation.ClassLoadingDelegate
ClassFileLocator.ForInstrumentation.ClassLoadingDelegate.Default, ClassFileLocator.ForInstrumentation.ClassLoadingDelegate.Explicit, ClassFileLocator.ForInstrumentation.ClassLoadingDelegate.ForDelegatingClassLoader| Constructor and Description | 
|---|
Explicit(ClassFileLocator.ForInstrumentation.ClassLoadingDelegate fallbackDelegate,
        Collection<? extends Class<?>> types)
Creates a new class loading delegate with a possibility of looking up explicitly
 registered classes. 
 | 
Explicit(ClassLoader classLoader,
        Collection<? extends Class<?>> types)
Creates a new class loading delegate with a possibility of looking up explicitly
 registered classes. 
 | 
| 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(Class<?> type)
Creates an explicit class loading delegate for the given type. 
 | 
public Explicit(@MaybeNull ClassLoader classLoader, Collection<? extends Class<?>> types)
classLoader - The class loader to be used for looking up classes.types - A collection of classes that cannot be looked up explicitly.public Explicit(ClassFileLocator.ForInstrumentation.ClassLoadingDelegate fallbackDelegate, Collection<? extends Class<?>> types)
fallbackDelegate - The class loading delegate to query for any class that is not
                         registered explicitly.types - A collection of classes that cannot be looked up explicitly.public static ClassFileLocator.ForInstrumentation.ClassLoadingDelegate of(Class<?> type)
type - The type that is explicitly locatable.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.