protected static class ClassLoadingStrategy.Default.WrappingDispatcher extends Object implements ClassLoadingStrategy.Configurable
ProtectionDomain on class loading.ClassLoadingStrategy.Configurable, ClassLoadingStrategy.Default, ClassLoadingStrategy.ForBootstrapInjectionBOOTSTRAP_LOADER| Modifier | Constructor and Description |
|---|---|
protected |
WrappingDispatcher(ByteArrayClassLoader.PersistenceHandler persistenceHandler,
boolean childFirst)
Creates a new wrapping dispatcher with a default protection domain and a default access control context.
|
| Modifier and Type | Method and Description |
|---|---|
ClassLoadingStrategy.Configurable |
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 |
with(PackageDefinitionStrategy packageDefinitionStrategy)
Defines the supplied package definition strategy to be used for defining packages.
|
ClassLoadingStrategy.Configurable |
with(ProtectionDomain protectionDomain)
Overrides the implicitly set default
ProtectionDomain with an explicit one. |
protected WrappingDispatcher(ByteArrayClassLoader.PersistenceHandler persistenceHandler, boolean childFirst)
persistenceHandler - The persistence handler to apply.childFirst - true if the created class loader should apply child-first semantics.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 with(ProtectionDomain protectionDomain)
ClassLoadingStrategy.ConfigurableProtectionDomain with an explicit one.with in interface ClassLoadingStrategy.ConfigurableprotectionDomain - The protection domain to apply.ProtectionDomain.public ClassLoadingStrategy.Configurable with(PackageDefinitionStrategy packageDefinitionStrategy)
ClassLoadingStrategy.Configurablewith in interface ClassLoadingStrategy.ConfigurablepackageDefinitionStrategy - The package definer to be used.public ClassLoadingStrategy.Configurable allowExistingTypes()
ClassLoadingStrategy.ConfigurableallowExistingTypes in interface ClassLoadingStrategy.ConfigurableCopyright © 2014–2016. All rights reserved.