Package net.bytebuddy.agent.builder
Class AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate.NotifyingClassLoadingAction
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate.NotifyingClassLoadingAction
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Class<?>>
- Enclosing class:
- AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate
@Enhance protected static class AgentBuilder.DescriptionStrategy.SuperTypeLoading.Asynchronous.ThreadSwitchingClassLoadingDelegate.NotifyingClassLoadingAction extends java.lang.Object implements java.util.concurrent.Callable<java.lang.Class<?>>
A class loading action that notifies the class loader's lock after the type was loaded.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ClassLoader
classLoader
The type's class loader which must not be the boot loader, i.enull
.private java.lang.String
name
The loaded type's name.private java.util.concurrent.atomic.AtomicBoolean
signal
The signal that indicates the completion of the class loading withfalse
.
-
Constructor Summary
Constructors Modifier Constructor Description protected
NotifyingClassLoadingAction(java.lang.String name, java.lang.ClassLoader classLoader, java.util.concurrent.atomic.AtomicBoolean signal)
Creates a notifying class loading action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
call()
-
-
-
Field Detail
-
name
private final java.lang.String name
The loaded type's name.
-
classLoader
private final java.lang.ClassLoader classLoader
The type's class loader which must not be the boot loader, i.enull
.
-
signal
private final java.util.concurrent.atomic.AtomicBoolean signal
The signal that indicates the completion of the class loading withfalse
.
-
-
Constructor Detail
-
NotifyingClassLoadingAction
protected NotifyingClassLoadingAction(java.lang.String name, java.lang.ClassLoader classLoader, java.util.concurrent.atomic.AtomicBoolean signal)
Creates a notifying class loading action.- Parameters:
name
- The loaded type's name.classLoader
- The type's class loader which must not be the boot loader, i.enull
.signal
- The signal that indicates the completion of the class loading withfalse
.
-
-