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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUnlockingClassLoadingDelegate(AgentBuilder.CircularityLock circularityLock)Creates an unlocking class loading delegate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>load(String name, ClassLoader classLoader)Loads a type.
-
-
-
Constructor Detail
-
UnlockingClassLoadingDelegate
protected UnlockingClassLoadingDelegate(AgentBuilder.CircularityLock circularityLock)
Creates an unlocking class loading delegate.- Parameters:
circularityLock- The circularity lock to unlock.
-
-
Method Detail
-
load
public Class<?> load(String name, ClassLoader classLoader) throws ClassNotFoundException
Loads a type.- Specified by:
loadin interfaceTypeDescription.SuperTypeLoading.ClassLoadingDelegate- Parameters:
name- The type's name,classLoader- The class loader to load the type from which might benullto represent the bootstrap class loader.- Returns:
- The loaded type.
- Throws:
ClassNotFoundException- If the type could not be found.
-
-