protected static class ClassLoadingStrategy.Default.InjectionDispatcher extends Object implements ClassLoadingStrategy.Configurable
ProtectionDomain on class injection.ClassLoadingStrategy.Configurable, ClassLoadingStrategy.Default, ClassLoadingStrategy.ForBootstrapInjection| Modifier | Constructor and Description |
|---|---|
protected |
InjectionDispatcher()
Creates a new injection dispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
withPackageDefinitionStrategy(PackageDefinitionStrategy packageDefinitionStrategy)
Defines the supplied package definer to be used for defining packages.
|
ClassLoadingStrategy.Configurable |
withProtectionDomain(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)
ClassLoadingStrategyload in interface ClassLoadingStrategyclassLoader - 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 withProtectionDomain(ProtectionDomain protectionDomain)
ClassLoadingStrategy.ConfigurableProtectionDomain with an explicit one.withProtectionDomain in interface ClassLoadingStrategy.ConfigurableprotectionDomain - The protection domain to apply.ProtectionDomain.public ClassLoadingStrategy.Configurable withPackageDefinitionStrategy(PackageDefinitionStrategy packageDefinitionStrategy)
ClassLoadingStrategy.ConfigurablewithPackageDefinitionStrategy in interface ClassLoadingStrategy.ConfigurablepackageDefinitionStrategy - The package definer to be used.Copyright © 2014–2015. All rights reserved.