Package net.bytebuddy.agent.builder
Class AgentBuilder.DescriptionStrategy.SuperTypeLoading.UnlockingClassLoadingDelegate
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.DescriptionStrategy.SuperTypeLoading.UnlockingClassLoadingDelegate
- All Implemented Interfaces:
TypeDescription.SuperTypeLoading.ClassLoadingDelegate
- Enclosing class:
- AgentBuilder.DescriptionStrategy.SuperTypeLoading
@Enhance
protected static class AgentBuilder.DescriptionStrategy.SuperTypeLoading.UnlockingClassLoadingDelegate
extends Object
implements TypeDescription.SuperTypeLoading.ClassLoadingDelegate
A class loading delegate that unlocks the circularity lock during class loading.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDescription.SuperTypeLoading.ClassLoadingDelegate
TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AgentBuilder.CircularityLock
The circularity lock to unlock. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
UnlockingClassLoadingDelegate
(AgentBuilder.CircularityLock circularityLock) Creates an unlocking class loading delegate. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
load
(String name, ClassLoader classLoader) Loads a type.
-
Field Details
-
circularityLock
The circularity lock to unlock.
-
-
Constructor Details
-
UnlockingClassLoadingDelegate
Creates an unlocking class loading delegate.- Parameters:
circularityLock
- The circularity lock to unlock.
-
-
Method Details
-
load
Loads a type.- Specified by:
load
in interfaceTypeDescription.SuperTypeLoading.ClassLoadingDelegate
- 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.
-