Class Sandbox
- java.lang.Object
-
- org.robolectric.internal.bytecode.Sandbox
-
- Direct Known Subclasses:
AndroidSandbox
public class Sandbox extends Object
-
-
Field Summary
Fields Modifier and Type Field Description ClassHandler
classHandler
-
Constructor Summary
Constructors Constructor Description Sandbox(InstrumentationConfiguration config, ResourceProvider resourceProvider, ClassInstrumentor classInstrumentor)
Sandbox(SandboxClassLoader sandboxClassLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Class<T>
bootstrappedClass(Class<?> clazz)
void
configure(ClassHandler classHandler, Interceptors interceptors)
ClassLoader
getRobolectricClassLoader()
protected ThreadFactory
mainThreadFactory()
void
replaceShadowMap(ShadowMap shadowMap)
void
runOnMainThread(Runnable runnable)
<T> T
runOnMainThread(Callable<T> callable)
-
-
-
Field Detail
-
classHandler
public ClassHandler classHandler
-
-
Constructor Detail
-
Sandbox
public Sandbox(InstrumentationConfiguration config, ResourceProvider resourceProvider, ClassInstrumentor classInstrumentor)
-
Sandbox
@Inject public Sandbox(SandboxClassLoader sandboxClassLoader)
-
-
Method Detail
-
mainThreadFactory
protected ThreadFactory mainThreadFactory()
-
getRobolectricClassLoader
public ClassLoader getRobolectricClassLoader()
-
replaceShadowMap
public void replaceShadowMap(ShadowMap shadowMap)
-
configure
public void configure(ClassHandler classHandler, Interceptors interceptors)
-
runOnMainThread
public void runOnMainThread(Runnable runnable)
-
runOnMainThread
public <T> T runOnMainThread(Callable<T> callable)
-
-