Package net.bytebuddy.dynamic.loading
Interface ByteArrayClassLoader.SynchronizationStrategy
-
- All Known Implementing Classes:
ByteArrayClassLoader.SynchronizationStrategy.ForJava7CapableVm
,ByteArrayClassLoader.SynchronizationStrategy.ForJava8CapableVm
,ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm
- Enclosing class:
- ByteArrayClassLoader
protected static interface ByteArrayClassLoader.SynchronizationStrategy
An engine for receiving a class loading lock when loading a class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ByteArrayClassLoader.SynchronizationStrategy.CreationAction
A creation action for a synchronization strategy.static class
ByteArrayClassLoader.SynchronizationStrategy.ForJava7CapableVm
A synchronization engine for a VM that is aware of parallel-capable class loaders.static class
ByteArrayClassLoader.SynchronizationStrategy.ForJava8CapableVm
A synchronization engine for a VM that is aware of parallel-capable class loaders using method handles to respect module boundaries.static class
ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm
A synchronization engine for a VM that is not aware of parallel-capable class loaders.static interface
ByteArrayClassLoader.SynchronizationStrategy.Initializable
An uninitialized synchronization strategy.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getClassLoadingLock(ByteArrayClassLoader classLoader, java.lang.String name)
Receives the class loading lock.
-
-
-
Method Detail
-
getClassLoadingLock
java.lang.Object getClassLoadingLock(ByteArrayClassLoader classLoader, java.lang.String name)
Receives the class loading lock.- Parameters:
name
- The name of the class being loaded.classLoader
- The class loader loading the class.- Returns:
- The corresponding class loading lock.
-
-