@HashCodeAndEqualsPlugin.Enhance public static class ClassLoadingStrategy.ForJnaInjection extends Object implements ClassLoadingStrategy<ClassLoader>
ClassLoadingStrategy.Configurable<S extends ClassLoader>, ClassLoadingStrategy.Default, ClassLoadingStrategy.ForBootstrapInjection, ClassLoadingStrategy.ForJnaInjection, ClassLoadingStrategy.ForUnsafeInjection, ClassLoadingStrategy.UsingLookupBOOTSTRAP_LOADER, NO_PROTECTION_DOMAIN| Constructor and Description |
|---|
ForJnaInjection()
Creates a new class loading strategy for JNA-based injection with a default protection domain.
|
ForJnaInjection(ProtectionDomain protectionDomain)
Creates a new class loading strategy for JNA-based injection.
|
| Modifier and Type | Method and Description |
|---|---|
Map<TypeDescription,Class<?>> |
load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types)
Loads a given collection of classes given their binary representation.
|
public ForJnaInjection()
public ForJnaInjection(@MaybeNull ProtectionDomain protectionDomain)
protectionDomain - The protection domain to use or null if no protection domain is set.public Map<TypeDescription,Class<?>> load(@MaybeNull ClassLoader classLoader, Map<TypeDescription,byte[]> types)
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.Copyright © 2014–2023. All rights reserved.