Package net.bytebuddy.description.type
Interface TypeDescription.SuperTypeLoading.ClassLoadingDelegate
- All Known Implementing Classes:
AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate
,AgentBuilder.DescriptionStrategy.SuperTypeLoading.UnlockingClassLoadingDelegate
,TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple
- Enclosing class:
TypeDescription.SuperTypeLoading
public static interface TypeDescription.SuperTypeLoading.ClassLoadingDelegate
A class loading delegate is responsible for resolving a type given a class loader and a type name.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
A simple class loading delegate that simply loads a type. -
Method Summary
Modifier and TypeMethodDescriptionClass
<?> load
(String name, ClassLoader classLoader) Loads a type.
-
Method Details
-
load
Loads a type.- Parameters:
name
- The type's name,classLoader
- The class loader to load the type from which might benull
to represent the bootstrap class loader.- Returns:
- The loaded type.
- Throws:
ClassNotFoundException
- If the type could not be found.
-