Closeable
, AutoCloseable
AndroidSandbox.SdkSandboxClassLoader
public class SandboxClassLoader extends URLClassLoader
Constructor | Description |
---|---|
SandboxClassLoader(ClassLoader erstwhileClassLoader,
InstrumentationConfiguration config,
ResourceProvider resourceProvider,
ClassInstrumentor classInstrumentor) |
|
SandboxClassLoader(InstrumentationConfiguration config,
ResourceProvider resourceProvider,
ClassInstrumentor classInstrumentor) |
Modifier and Type | Method | Description |
---|---|---|
protected byte[] |
getByteCode(String className) |
|
URL |
getResource(String name) |
|
Class<?> |
loadClass(String name,
boolean resolve) |
|
protected Class<?> |
maybeInstrumentClass(String className) |
|
protected byte[] |
postProcessUninstrumentedClass(ClassDetails classDetails,
byte[] origClassBytes) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
defineClass, defineClass
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
@Inject public SandboxClassLoader(InstrumentationConfiguration config, ResourceProvider resourceProvider, ClassInstrumentor classInstrumentor)
public SandboxClassLoader(ClassLoader erstwhileClassLoader, InstrumentationConfiguration config, ResourceProvider resourceProvider, ClassInstrumentor classInstrumentor)
public URL getResource(String name)
getResource
in class ClassLoader
public Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
protected Class<?> maybeInstrumentClass(String className) throws ClassNotFoundException
ClassNotFoundException
protected byte[] postProcessUninstrumentedClass(ClassDetails classDetails, byte[] origClassBytes)
protected byte[] getByteCode(String className) throws ClassNotFoundException
ClassNotFoundException