@Test public void testOverride() throws IOException { InitTest.initted = false; final ModuleBasedContextFactory factory = new ModuleBasedContextFactory(); final ModuleDefinitionSet set = factory.loadModules(defs, "base"); assertTrue(!InitTest.initted); assertEquals("a string", set.getApplicationContext("child1").getBean("override", String.class)); }
public ModuleDefinitionSet loadModules(final Collection<ModuleDefinition> defs, final String root) throws IOException { final Map<String, ModuleDefinition> modules = wireUpModules(root, defs); final DefaultModuleDefinitionSet moduleSet = new DefaultModuleDefinitionSet(modules, root); moduleSet.load(); return moduleSet; }
ModuleBasedContextFactory { public ModuleDefinitionSet loadModules(final Collection<ModuleDefinition> defs, final String root) throws IOException { final Map<String, ModuleDefinition> modules = wireUpModules(root, defs); final DefaultModuleDefinitionSet moduleSet = new DefaultModuleDefinitionSet(modules, root); moduleSet.load(); return moduleSet; } }
ModuleBasedContextFactory { public ModuleDefinitionSet loadModules(final Collection<ModuleDefinition> defs, final String root) throws IOException { final Map<String, ModuleDefinition> modules = wireUpModules(root, defs); final DefaultModuleDefinitionSet moduleSet = new DefaultModuleDefinitionSet(modules, root); moduleSet.load(); return moduleSet; }  }
ModuleBasedContextFactory { public ModuleDefinitionSet loadModules(final Collection<ModuleDefinition> defs, final String root) throws IOException { final Map<String, ModuleDefinition> modules = wireUpModules(root, defs); final DefaultModuleDefinitionSet moduleSet = new DefaultModuleDefinitionSet(modules, root); moduleSet.load(); return moduleSet; }  ModuleDefinitionSet loadModules(final Collection<ModuleDefinition> defs, final String root); }
ModuleBasedContextFactory { public ModuleDefinitionSet loadModules(final Collection<ModuleDefinition> defs, final String root) throws IOException { final Map<String, ModuleDefinition> modules = wireUpModules(root, defs); final DefaultModuleDefinitionSet moduleSet = new DefaultModuleDefinitionSet(modules, root); moduleSet.load(); return moduleSet; }  ModuleDefinitionSet loadModules(final Collection<ModuleDefinition> defs, final String root);  }