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 ClassesModifier and TypeInterfaceDescriptionstatic enumA creation action for a synchronization strategy.static classA synchronization engine for a VM that is aware of parallel-capable class loaders.static classA synchronization engine for a VM that is aware of parallel-capable class loaders using method handles to respect module boundaries.static enumA synchronization engine for a VM that is not aware of parallel-capable class loaders.static interfaceAn uninitialized synchronization strategy. -
Method Summary
Modifier and TypeMethodDescriptiongetClassLoadingLock(ByteArrayClassLoader classLoader, String name) Receives the class loading lock.
-
Method Details
-
getClassLoadingLock
Receives the class loading lock.- Parameters:
classLoader- The class loader loading the class.name- The name of the class being loaded.- Returns:
- The corresponding class loading lock.
-