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 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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ThreadSwitchingClassLoadingDelegate(ExecutorService executorService)
Creates a new thread-switching 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
-
ThreadSwitchingClassLoadingDelegate
protected ThreadSwitchingClassLoadingDelegate(ExecutorService executorService)
Creates a new thread-switching class loading delegate.- Parameters:
executorService
- The executor service to delegate class loading to.
-
-
Method Detail
-
load
public Class<?> load(String name, 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.
-
-