public static class AndroidClassLoadingStrategy.Wrapping extends AndroidClassLoadingStrategy
AndroidClassLoadingStrategy.DexProcessor, AndroidClassLoadingStrategy.Injecting, AndroidClassLoadingStrategy.WrappingClassLoadingStrategy.Configurable<S extends ClassLoader>, ClassLoadingStrategy.Default, ClassLoadingStrategy.ForBootstrapInjection, ClassLoadingStrategy.ForJnaInjection, ClassLoadingStrategy.ForPreloadedTypes, ClassLoadingStrategy.ForUnsafeInjection, ClassLoadingStrategy.UsingLookupprivateDirectory, randomStringBOOTSTRAP_LOADER, NO_PROTECTION_DOMAIN| Constructor and Description |
|---|
Wrapping(File privateDirectory)
Creates a new wrapping class loading strategy for Android that uses the default SDK-compiler based dex processor.
|
Wrapping(File privateDirectory,
AndroidClassLoadingStrategy.DexProcessor dexProcessor)
Creates a new wrapping class loading strategy for Android.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<TypeDescription,Class<?>> |
doLoad(ClassLoader classLoader,
Set<TypeDescription> typeDescriptions,
File jar)
Applies the actual class loading.
|
loadpublic Wrapping(File privateDirectory)
privateDirectory - A directory that is not shared with other applications to be used for storing
generated classes and their processed forms.public Wrapping(File privateDirectory, AndroidClassLoadingStrategy.DexProcessor dexProcessor)
privateDirectory - A directory that is not shared with other applications to be used for storing
generated classes and their processed forms.dexProcessor - The dex processor to be used for creating a dex file out of Java files.protected Map<TypeDescription,Class<?>> doLoad(@MaybeNull ClassLoader classLoader, Set<TypeDescription> typeDescriptions, File jar)
doLoad in class AndroidClassLoadingStrategyclassLoader - The target class loader.typeDescriptions - Descriptions of the loaded types.jar - A jar file containing the supplied types as dex files.Copyright © 2014–2022. All rights reserved.