Package net.bytebuddy.agent.builder
Class AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate
-
- All Implemented Interfaces:
TypeDescription.SuperTypeLoading.ClassLoadingDelegate
- Enclosing class:
- AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous
@Enhance protected static class AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate extends java.lang.Object implements TypeDescription.SuperTypeLoading.ClassLoadingDelegate
A class loading delegate that delegates loading of the super type to another thread.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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.-
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 java.util.concurrent.ExecutorService
executorService
The executor service to delegate class loading to.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ThreadSwitchingClassLoadingDelegate(java.util.concurrent.ExecutorService executorService)
Creates a new thread-switching 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.
-
-
-
Method Detail
-
load
public java.lang.Class<?> load(java.lang.String name, java.lang.ClassLoader classLoader)
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.
-
-