protected static class ClassLoadingStrategy.Default.InjectionDispatcher extends Object implements ClassLoadingStrategy.Configurable<ClassLoader>
ProtectionDomain
on class injection.ClassLoadingStrategy.Configurable<S extends ClassLoader>, ClassLoadingStrategy.Default, ClassLoadingStrategy.ForBootstrapInjection, ClassLoadingStrategy.ForUnsafeInjection
BOOTSTRAP_LOADER, NO_PROTECTION_DOMAIN
Modifier | Constructor and Description |
---|---|
protected |
InjectionDispatcher()
Creates a new injection dispatcher.
|
Modifier and Type | Method and Description |
---|---|
ClassLoadingStrategy.Configurable<ClassLoader> |
allowExistingTypes()
Determines if this class loading strategy should not throw an exception when attempting to load a class that
was already loaded.
|
boolean |
equals(Object other) |
int |
hashCode() |
Map<TypeDescription,Class<?>> |
load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
String |
toString() |
ClassLoadingStrategy.Configurable<ClassLoader> |
with(PackageDefinitionStrategy packageDefinitionStrategy)
Defines the supplied package definition strategy to be used for defining packages.
|
ClassLoadingStrategy.Configurable<ClassLoader> |
with(ProtectionDomain protectionDomain)
Overrides the implicitly set default
ProtectionDomain with an explicit one. |
protected InjectionDispatcher()
public Map<TypeDescription,Class<?>> load(ClassLoader classLoader, Map<TypeDescription,byte[]> types)
ClassLoadingStrategy
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.public ClassLoadingStrategy.Configurable<ClassLoader> with(ProtectionDomain protectionDomain)
ClassLoadingStrategy.Configurable
ProtectionDomain
with an explicit one.with
in interface ClassLoadingStrategy.Configurable<ClassLoader>
protectionDomain
- The protection domain to apply.ProtectionDomain
.public ClassLoadingStrategy.Configurable<ClassLoader> with(PackageDefinitionStrategy packageDefinitionStrategy)
ClassLoadingStrategy.Configurable
with
in interface ClassLoadingStrategy.Configurable<ClassLoader>
packageDefinitionStrategy
- The package definer to be used.public ClassLoadingStrategy.Configurable<ClassLoader> allowExistingTypes()
ClassLoadingStrategy.Configurable
allowExistingTypes
in interface ClassLoadingStrategy.Configurable<ClassLoader>
Copyright © 2014–2017. All rights reserved.