@Test public void testBuildLoadersWithCustomListOfStandardLoaders() { StdConfigImpl std = StdConfig.instance(); List<Class<? extends StandardLoader>> newLoaders = new ArrayList(); newLoaders.add(StdFixedValueLoader.class); newLoaders.add(StdJndiLoader.class); std.setStandardLoaders(newLoaders); List<Loader> loaders = std.buildLoaders(); assertEquals(2, loaders.size()); assertEquals(StdFixedValueLoader.class, loaders.get(0).getClass()); assertEquals(StdJndiLoader.class, loaders.get(1).getClass()); std.setStandardLoaders(BaseConfig.getDefaultLoaderList()); loaders = std.buildLoaders(); assertEquals(7, loaders.size()); assertEquals(StdFixedValueLoader.class, loaders.get(0).getClass()); assertEquals(StdPropFileOnClasspathLoader.class, loaders.get(6).getClass()); std.setStandardLoaders(StdSysPropLoader.class, StdPropFileOnFilesystemLoader.class); loaders = std.buildLoaders(); assertEquals(2, loaders.size()); assertEquals(StdSysPropLoader.class, loaders.get(0).getClass()); assertEquals(StdPropFileOnFilesystemLoader.class, loaders.get(1).getClass()); }
public static StdConfigImpl instance() { return new StdConfigImpl(); }
StdConfig { public static StdConfigImpl instance() { return new StdConfigImpl(); } }
StdConfig { public static StdConfigImpl instance() { return new StdConfigImpl(); }  }
StdConfig { public static StdConfigImpl instance() { return new StdConfigImpl(); }  static StdConfigImpl instance(); }
StdConfig { public static StdConfigImpl instance() { return new StdConfigImpl(); }  static StdConfigImpl instance();  }