Class Sandbox
java.lang.Object
org.robolectric.internal.bytecode.Sandbox
- Direct Known Subclasses:
AndroidSandbox
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSandbox
(InstrumentationConfiguration config, ResourceProvider resourceProvider, ClassInstrumentor classInstrumentor) Sandbox
(SandboxClassLoader sandboxClassLoader) -
Method Summary
Modifier and TypeMethodDescription<T> Class<T>
bootstrappedClass
(Class<?> clazz) protected void
void
configure
(ClassHandler classHandler, Interceptors interceptors) protected ThreadFactory
void
replaceShadowMap
(ShadowMap shadowMap) void
runOnMainThread
(Runnable runnable) <T> T
runOnMainThread
(Callable<T> callable) void
shutdown()
Cleans up resources that have been opened by this Sandbox.
-
Field Details
-
classHandler
-
-
Constructor Details
-
Sandbox
public Sandbox(InstrumentationConfiguration config, ResourceProvider resourceProvider, ClassInstrumentor classInstrumentor) -
Sandbox
-
-
Method Details
-
mainThreadFactory
-
bootstrappedClass
-
getRobolectricClassLoader
-
replaceShadowMap
-
getModeInvalidatedClasses
-
clearModeInvalidatedClasses
protected void clearModeInvalidatedClasses() -
configure
-
runOnMainThread
-
shutdown
public void shutdown()Cleans up resources that have been opened by this Sandbox. -
runOnMainThread
-