Package org.robolectric.config
Class ConfigurationRegistry
- java.lang.Object
-
- org.robolectric.config.ConfigurationRegistry
-
public class ConfigurationRegistry extends java.lang.ObjectHolds configuration objects for the current test, computed usingConfigurer. Configuration is computed before tests run, outside of their sandboxes. If the configuration is needed from within a sandbox (when a test is executing), we need to transfer it to a class that the SandboxClassLoader recognizes. We do this by serializing and deserializing inreloadInSandboxClassLoader(Object).
-
-
Field Summary
Fields Modifier and Type Field Description static ConfigurationRegistryinstance
-
Constructor Summary
Constructors Constructor Description ConfigurationRegistry(java.util.Map<java.lang.Class<?>,java.lang.Object> configClassMap)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Tget(java.lang.Class<T> configClass)Returns the configuration object of the specified class, computed usingConfigurer.
-
-
-
Field Detail
-
instance
public static ConfigurationRegistry instance
-
-