Package net.bytebuddy.dynamic.loading
Enum ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm
- java.lang.Object
-
- java.lang.Enum<ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm>
-
- net.bytebuddy.dynamic.loading.ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm>
,ByteArrayClassLoader.SynchronizationStrategy
,ByteArrayClassLoader.SynchronizationStrategy.Initializable
- Enclosing interface:
- ByteArrayClassLoader.SynchronizationStrategy
public static enum ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm extends java.lang.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 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 Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForLegacyVm()
-
Method Summary
All Methods Static 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.static ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm c : ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ByteArrayClassLoader.SynchronizationStrategy.ForLegacyVm valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
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.
-
-