Package net.bytebuddy.dynamic.loading
Enum Class ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm
java.lang.Object
java.lang.Enum<ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm>
net.bytebuddy.dynamic.loading.ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm
- All Implemented Interfaces:
Serializable
,Comparable<ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm>
,Constable
,ByteArrayClassLoader.SynchronizationStrategy
,ByteArrayClassLoader.SynchronizationStrategy.Initializable
- Enclosing interface:
- ByteArrayClassLoader.SynchronizationStrategy
public static enum ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm
extends Enum<ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm>
implements ByteArrayClassLoader.SynchronizationStrategy, ByteArrayClassLoader.SynchronizationStrategy.Initializable
A synchronization engine for a VM that is not aware of parallel-capable class loaders.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
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
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassLoadingLock
(ByteArrayClassLoader classLoader, String name) Receives the class loading lock.Initializes this synchronization strategy.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
ForLegacyVm
private ForLegacyVm()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
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.
-