public static enum ClassLoadingStrategy.ForPreloadedTypes extends Enum<ClassLoadingStrategy.ForPreloadedTypes> implements ClassLoadingStrategy<ClassLoader>
ClassLoadingStrategy.Configurable<S extends ClassLoader>, ClassLoadingStrategy.Default, ClassLoadingStrategy.ForBootstrapInjection, ClassLoadingStrategy.ForJnaInjection, ClassLoadingStrategy.ForPreloadedTypes, ClassLoadingStrategy.ForUnsafeInjection, ClassLoadingStrategy.UsingLookup
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
BOOTSTRAP_LOADER, NO_PROTECTION_DOMAIN
Modifier and Type | Method and Description |
---|---|
Map<TypeDescription,Class<?>> |
load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
static ClassLoadingStrategy.ForPreloadedTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClassLoadingStrategy.ForPreloadedTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClassLoadingStrategy.ForPreloadedTypes INSTANCE
public static ClassLoadingStrategy.ForPreloadedTypes[] values()
for (ClassLoadingStrategy.ForPreloadedTypes c : ClassLoadingStrategy.ForPreloadedTypes.values()) System.out.println(c);
public static ClassLoadingStrategy.ForPreloadedTypes valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Map<TypeDescription,Class<?>> load(ClassLoader classLoader, Map<TypeDescription,byte[]> types)
load
in interface ClassLoadingStrategy<ClassLoader>
classLoader
- The class loader to used for loading the classes.types
- Byte array representations of the types to be loaded mapped by their descriptions,
where an iteration order defines an order in which they are supposed to be loaded,
if relevant.Copyright © 2014–2022. All rights reserved.