protected static class ClassLoadingStrategy.Default.ProtectionDomainWrapper extends Object implements ClassLoadingStrategy
ProtectionDomain on class loading.ClassLoadingStrategy.Default, ClassLoadingStrategy.WithDefaultProtectionDomain| Constructor and Description |
|---|
ProtectionDomainWrapper(ProtectionDomain protectionDomain,
ByteArrayClassLoader.PersistenceHandler persistenceHandler,
boolean childFirst)
Creates a new protection domain specific class loading wrapper.
|
| 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() |
public ProtectionDomainWrapper(ProtectionDomain protectionDomain, ByteArrayClassLoader.PersistenceHandler persistenceHandler, boolean childFirst)
protectionDomain - The protection domain to apply.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.Copyright © 2014–2015. All rights reserved.