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 java.lang.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
Fields Modifier and Type Field Description private AgentBuilder.CircularityLock
circularityLock
The circularity lock to unlock.
-
Constructor Summary
Constructors Modifier Constructor Description protected
UnlockingClassLoadingDelegate(AgentBuilder.CircularityLock circularityLock)
Creates an unlocking class loading delegate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
load(java.lang.String name, java.lang.ClassLoader classLoader)
Loads a type.
-
-
-
Field Detail
-
circularityLock
private final AgentBuilder.CircularityLock circularityLock
The circularity lock to unlock.
-
-
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 java.lang.Class<?> load(java.lang.String name, java.lang.ClassLoader classLoader) throws java.lang.ClassNotFoundException
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:
java.lang.ClassNotFoundException
- If the type could not be found.
-
-