public static enum InjectionClassLoader.Strategy extends Enum<InjectionClassLoader.Strategy> implements ClassLoadingStrategy<InjectionClassLoader>
ClassLoadingStrategy.Configurable<S extends ClassLoader>, ClassLoadingStrategy.Default, ClassLoadingStrategy.ForBootstrapInjection, ClassLoadingStrategy.ForUnsafeInjection
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
BOOTSTRAP_LOADER, NO_PROTECTION_DOMAIN
Modifier and Type | Method and Description |
---|---|
Map<TypeDescription,Class<?>> |
load(InjectionClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
String |
toString() |
static InjectionClassLoader.Strategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InjectionClassLoader.Strategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InjectionClassLoader.Strategy INSTANCE
public static InjectionClassLoader.Strategy[] values()
for (InjectionClassLoader.Strategy c : InjectionClassLoader.Strategy.values()) System.out.println(c);
public static InjectionClassLoader.Strategy 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(InjectionClassLoader classLoader, Map<TypeDescription,byte[]> types)
ClassLoadingStrategy
load
in interface ClassLoadingStrategy<InjectionClassLoader>
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.public String toString()
toString
in class Enum<InjectionClassLoader.Strategy>
Copyright © 2014–2017. All rights reserved.