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 java.lang.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 Modifier and Type Field Description private java.lang.reflect.Method
method
TheClassLoader#getClassLoadingLock(String)
method.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForJava7CapableVm(java.lang.reflect.Method method)
Creates a new synchronization strategy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getClassLoadingLock(ByteArrayClassLoader classLoader, java.lang.String name)
Receives the class loading lock.ByteArrayClassLoader.SynchronizationStrategy
initialize()
Initializes this synchronization strategy.
-
-
-
Method Detail
-
getClassLoadingLock
public java.lang.Object getClassLoadingLock(ByteArrayClassLoader classLoader, java.lang.String name)
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
public ByteArrayClassLoader.SynchronizationStrategy initialize()
Initializes this synchronization strategy.- Specified by:
initialize
in interfaceByteArrayClassLoader.SynchronizationStrategy.Initializable
- Returns:
- The synchronization strategy to use.
-
-