T
- The least specific type of class loader this strategy can apply to.public interface ClassLoadingStrategy<T extends ClassLoader>
Modifier and Type | Interface and Description |
---|---|
static interface |
ClassLoadingStrategy.Configurable<S extends ClassLoader>
A
ClassLoadingStrategy that allows configuring the strategy's behavior. |
static class |
ClassLoadingStrategy.Default
This class contains implementations of default class loading strategies.
|
static class |
ClassLoadingStrategy.ForBootstrapInjection
A class loading strategy which allows class injection into the bootstrap class loader if
appropriate.
|
static class |
ClassLoadingStrategy.ForUnsafeInjection
A class loading strategy that injects a class using
sun.misc.Unsafe . |
static class |
ClassLoadingStrategy.UsingLookup
A class loading strategy that uses a
java.lang.invoke.MethodHandles$Lookup instance for defining types. |
Modifier and Type | Field and Description |
---|---|
static ClassLoader |
BOOTSTRAP_LOADER
A type-safe constant representing the bootstrap class loader which is represented by
null within Java. |
static ProtectionDomain |
NO_PROTECTION_DOMAIN
An undefined protection domain.
|
Modifier and Type | Method and Description |
---|---|
Map<TypeDescription,Class<?>> |
load(T classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
static final ClassLoader BOOTSTRAP_LOADER
null
within Java.static final ProtectionDomain NO_PROTECTION_DOMAIN
Map<TypeDescription,Class<?>> load(T classLoader, Map<TypeDescription,byte[]> types)
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–2020. All rights reserved.