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 classAgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate.NotifyingClassLoadingActionA class loading action that notifies the class loader's lock after the type was loaded.protected static classAgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate.SimpleClassLoadingActionA 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.ExecutorServiceexecutorServiceThe executor service to delegate class loading to.
-
Constructor Summary
Constructors Modifier Constructor Description protectedThreadSwitchingClassLoadingDelegate(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, @MaybeNull java.lang.ClassLoader classLoader)Loads a type.- Specified by:
loadin interfaceTypeDescription.SuperTypeLoading.ClassLoadingDelegate- Parameters:
name- The type's name,classLoader- The class loader to load the type from which might benullto represent the bootstrap class loader.- Returns:
- The loaded type.
-
-