public class ConfigurationRegistry extends Object
Configurer
.
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 in
reloadInSandboxClassLoader(Object)
.Modifier and Type | Field | Description |
---|---|---|
static ConfigurationRegistry |
instance |
Constructor | Description |
---|---|
ConfigurationRegistry(Map<Class<?>,Object> configClassMap) |
Modifier and Type | Method | Description |
---|---|---|
static <T> T |
get(Class<T> configClass) |
Returns the configuration object of the specified class, computed using
Configurer . |
public static ConfigurationRegistry instance
public static <T> T get(Class<T> configClass)
Configurer
.