@HashCodeAndEqualsPlugin.Enhance protected static class AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate extends java.lang.Object implements TypeDescription.SuperTypeLoading.ClassLoadingDelegate
Modifier and Type | Class and Description |
---|---|
protected static class |
AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate.NotifyingClassLoadingAction
A class loading action that notifies the class loader's lock after the type was loaded.
|
protected static class |
AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate.SimpleClassLoadingAction
A class loading action that simply loads a type.
|
TypeDescription.SuperTypeLoading.ClassLoadingDelegate.Simple
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ExecutorService |
executorService
The executor service to delegate class loading to.
|
Modifier | Constructor and Description |
---|---|
protected |
ThreadSwitchingClassLoadingDelegate(java.util.concurrent.ExecutorService executorService)
Creates a new thread-switching 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 java.util.concurrent.ExecutorService executorService
protected ThreadSwitchingClassLoadingDelegate(java.util.concurrent.ExecutorService executorService)
executorService
- The executor service to delegate class loading to.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.