public static class AndroidClassLoadingStrategy.Injecting extends AndroidClassLoadingStrategy
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AndroidClassLoadingStrategy.Injecting.Dispatcher
A dispatcher for loading a dex file.
|
AndroidClassLoadingStrategy.DexProcessor, AndroidClassLoadingStrategy.Injecting, AndroidClassLoadingStrategy.WrappingClassLoadingStrategy.Configurable<S extends ClassLoader>, ClassLoadingStrategy.Default, ClassLoadingStrategy.ForBootstrapInjection, ClassLoadingStrategy.ForJnaInjection, ClassLoadingStrategy.ForUnsafeInjection, ClassLoadingStrategy.UsingLookupprivateDirectory, randomStringBOOTSTRAP_LOADER, NO_PROTECTION_DOMAIN| Constructor and Description |
|---|
Injecting(File privateDirectory)
Creates a new injecting class loading strategy for Android that uses the default SDK-compiler based dex processor.
|
Injecting(File privateDirectory,
AndroidClassLoadingStrategy.DexProcessor dexProcessor)
Creates a new injecting 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.
|
Map<TypeDescription,Class<?>> |
load(ClassLoader classLoader,
Map<TypeDescription,byte[]> types) |
public Injecting(File privateDirectory)
privateDirectory - A directory that is not shared with other applications to be used for storing
generated classes and their processed forms.public Injecting(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.public Map<TypeDescription,Class<?>> load(@MaybeNull ClassLoader classLoader, Map<TypeDescription,byte[]> types)
load in interface ClassLoadingStrategy<ClassLoader>load in class AndroidClassLoadingStrategyprotected Map<TypeDescription,Class<?>> doLoad(@MaybeNull ClassLoader classLoader, Set<TypeDescription> typeDescriptions, File jar) throws IOException
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.IOException - If an I/O exception occurs.Copyright © 2014–1970. All rights reserved.