Class ConfigurationRegistry


  • public class ConfigurationRegistry
    extends java.lang.Object
    Holds configuration objects for the current test, computed using 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).
    • 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> T get​(java.lang.Class<T> configClass)
      Returns the configuration object of the specified class, computed using Configurer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfigurationRegistry

        public ConfigurationRegistry​(java.util.Map<java.lang.Class<?>,​java.lang.Object> configClassMap)
    • Method Detail

      • get

        public static <T> T get​(java.lang.Class<T> configClass)
        Returns the configuration object of the specified class, computed using Configurer.