@Test public void testBeanWithoutNameOrId() throws Exception { logger.info("testBeanWithoutNameOrId()"); SpringContext ctx = new SpringContext(null, "classpath:contexts/missingId.xml"); Map<String,BeanDefinition> beans = ctx.getBeans(); assertEquals("bean count", 2, beans.size()); }
public Map<String,BeanDefinition> getBeans() { return Collections.unmodifiableMap(beanDefinitions); }
SpringContext { public Map<String,BeanDefinition> getBeans() { return Collections.unmodifiableMap(beanDefinitions); } }
SpringContext { public Map<String,BeanDefinition> getBeans() { return Collections.unmodifiableMap(beanDefinitions); } SpringContext(WarMachine war, String contextLocation);  SpringContext(SpringContext parent, WarMachine war, String contextLocation); }
SpringContext { public Map<String,BeanDefinition> getBeans() { return Collections.unmodifiableMap(beanDefinitions); } 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 Map<String,BeanDefinition> getBeans() { return Collections.unmodifiableMap(beanDefinitions); } 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);  }