Package net.bytebuddy.dynamic.loading
Class ByteArrayClassLoader.SynchronizationStrategy.ForJava7CapableVm
java.lang.Object
net.bytebuddy.dynamic.loading.ByteArrayClassLoader.SynchronizationStrategy.ForJava7CapableVm
- All Implemented Interfaces:
ByteArrayClassLoader.SynchronizationStrategy
,ByteArrayClassLoader.SynchronizationStrategy.Initializable
- Enclosing interface:
ByteArrayClassLoader.SynchronizationStrategy
@Enhance
public static class ByteArrayClassLoader.SynchronizationStrategy.ForJava7CapableVm
extends Object
implements ByteArrayClassLoader.SynchronizationStrategy, ByteArrayClassLoader.SynchronizationStrategy.Initializable
A synchronization engine for a VM that is aware of parallel-capable class loaders.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.loading.ByteArrayClassLoader.SynchronizationStrategy
ByteArrayClassLoader.SynchronizationStrategy.CreationAction, ByteArrayClassLoader.SynchronizationStrategy.ForJava7CapableVm, ByteArrayClassLoader.SynchronizationStrategy.ForJava8CapableVm, ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm, ByteArrayClassLoader.SynchronizationStrategy.Initializable
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ForJava7CapableVm
(Method method) Creates a new synchronization strategy. -
Method Summary
Modifier and TypeMethodDescriptiongetClassLoadingLock
(ByteArrayClassLoader classLoader, String name) Receives the class loading lock.Initializes this synchronization strategy.
-
Field Details
-
method
TheClassLoader#getClassLoadingLock(String)
method.
-
-
Constructor Details
-
ForJava7CapableVm
Creates a new synchronization strategy.- Parameters:
method
- TheClassLoader#getClassLoadingLock(String)
method.
-
-
Method Details
-
getClassLoadingLock
Receives the class loading lock.- Specified by:
getClassLoadingLock
in interfaceByteArrayClassLoader.SynchronizationStrategy
- Parameters:
classLoader
- The class loader loading the class.name
- The name of the class being loaded.- Returns:
- The corresponding class loading lock.
-
initialize
Initializes this synchronization strategy.- Specified by:
initialize
in interfaceByteArrayClassLoader.SynchronizationStrategy.Initializable
- Returns:
- The synchronization strategy to use.
-