@HashCodeAndEqualsPlugin.Enhance protected static class AgentBuilder.DescriptionStrategy.SuperTypeLoading.UnlockingClassLoadingDelegate extends java.lang.Object implements TypeDescription.SuperTypeLoading.ClassLoadingDelegate
TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple
Modifier and Type | Field and Description |
---|---|
private AgentBuilder.CircularityLock |
circularityLock
The circularity lock to unlock.
|
Modifier | Constructor and Description |
---|---|
protected |
UnlockingClassLoadingDelegate(AgentBuilder.CircularityLock circularityLock)
Creates an unlocking class loading delegate.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
load(java.lang.String name,
java.lang.ClassLoader classLoader)
Loads a type.
|
private final AgentBuilder.CircularityLock circularityLock
protected UnlockingClassLoadingDelegate(AgentBuilder.CircularityLock circularityLock)
circularityLock
- The circularity lock to unlock.public java.lang.Class<?> load(java.lang.String name, java.lang.ClassLoader classLoader) throws java.lang.ClassNotFoundException
load
in interface TypeDescription.SuperTypeLoading.ClassLoadingDelegate
name
- The type's name,classLoader
- The class loader to load the type from which might be null
to represent the bootstrap class loader.java.lang.ClassNotFoundException
- If the type could not be found.