public class Sandbox extends Object
Modifier and Type | Field and Description |
---|---|
ClassHandler |
classHandler |
Constructor and Description |
---|
Sandbox(InstrumentationConfiguration config,
ResourceProvider resourceProvider,
ClassInstrumentor classInstrumentor) |
Sandbox(SandboxClassLoader sandboxClassLoader) |
Modifier and Type | Method and Description |
---|---|
<T> Class<T> |
bootstrappedClass(Class<?> clazz) |
void |
configure(ClassHandler classHandler,
Interceptors interceptors) |
ClassLoader |
getRobolectricClassLoader() |
protected ThreadFactory |
mainThreadFactory() |
void |
replaceShadowMap(ShadowMap shadowMap) |
<T> T |
runOnMainThread(Callable<T> callable) |
void |
runOnMainThread(Runnable runnable) |
public ClassHandler classHandler
public Sandbox(InstrumentationConfiguration config, ResourceProvider resourceProvider, ClassInstrumentor classInstrumentor)
@Inject public Sandbox(SandboxClassLoader sandboxClassLoader)
protected ThreadFactory mainThreadFactory()
public ClassLoader getRobolectricClassLoader()
public void replaceShadowMap(ShadowMap shadowMap)
public void configure(ClassHandler classHandler, Interceptors interceptors)
public void runOnMainThread(Runnable runnable)
public <T> T runOnMainThread(Callable<T> callable)