@Test(expected=InvalidContextException.class) public void testInheritClassFail() throws Exception { logger.info("testInheritClassFail()"); SpringContext ctx = new SpringContext(null, "classpath:contexts/inheritClassFail.xml"); assertEquals("com.example.SomeBean", ctx.getBean("concreteBean").getBeanClass()); }
public BeanDefinition getBean(String name) { BeanDefinition def = beanDefinitionsById.get(name); if (def == null) def = beanDefinitionsByName.get(name); return def; }
SpringContext { public BeanDefinition getBean(String name) { BeanDefinition def = beanDefinitionsById.get(name); if (def == null) def = beanDefinitionsByName.get(name); return def; } }
SpringContext { public BeanDefinition getBean(String name) { BeanDefinition def = beanDefinitionsById.get(name); if (def == null) def = beanDefinitionsByName.get(name); return def; } SpringContext(WarMachine war, String contextLocation);  SpringContext(SpringContext parent, WarMachine war, String contextLocation); }
SpringContext { public BeanDefinition getBean(String name) { BeanDefinition def = beanDefinitionsById.get(name); if (def == null) def = beanDefinitionsByName.get(name); return def; } SpringContext(WarMachine war, String contextLocation);  SpringContext(SpringContext parent, WarMachine war, String contextLocation); Map<String,BeanDefinition> getBeans(); BeanDefinition getBean(String name); List<BeanDefinition> getBeansByClass(String className); }
SpringContext { public BeanDefinition getBean(String name) { BeanDefinition def = beanDefinitionsById.get(name); if (def == null) def = beanDefinitionsByName.get(name); return def; } SpringContext(WarMachine war, String contextLocation);  SpringContext(SpringContext parent, WarMachine war, String contextLocation); Map<String,BeanDefinition> getBeans(); BeanDefinition getBean(String name); List<BeanDefinition> getBeansByClass(String className);  }