@Test public void testConstructContainerWithConfigBean() throws Exception { AnnotationConfigApplicationContext configApplicationContext = beanFactory.constructContainerWithConfigBean( ComponentAnnotationModel.class, ServiceAnnotationModel.class, ServiceAnnotationModel.class); ServiceAnnotationModel model = configApplicationContext.getBean(ServiceAnnotationModel.class); System.out.println(PrintUtil.formatTestResult(model)); configApplicationContext.destroy(); }
public AnnotationConfigApplicationContext constructContainerWithConfigBean(Class<?>... classes) { return new AnnotationConfigApplicationContext(classes); }
AnnotationConfigApplicationContextBeanFactory { public AnnotationConfigApplicationContext constructContainerWithConfigBean(Class<?>... classes) { return new AnnotationConfigApplicationContext(classes); } }
AnnotationConfigApplicationContextBeanFactory { public AnnotationConfigApplicationContext constructContainerWithConfigBean(Class<?>... classes) { return new AnnotationConfigApplicationContext(classes); }  }
AnnotationConfigApplicationContextBeanFactory { public AnnotationConfigApplicationContext constructContainerWithConfigBean(Class<?>... classes) { return new AnnotationConfigApplicationContext(classes); }  AnnotationConfigApplicationContext simpleConstructContainer(); AnnotationConfigApplicationContext constructContainerWithConfigBean(Class<?>... classes); AnnotationConfigApplicationContext constructContainerWithBasePackage(String basePackage); }
AnnotationConfigApplicationContextBeanFactory { public AnnotationConfigApplicationContext constructContainerWithConfigBean(Class<?>... classes) { return new AnnotationConfigApplicationContext(classes); }  AnnotationConfigApplicationContext simpleConstructContainer(); AnnotationConfigApplicationContext constructContainerWithConfigBean(Class<?>... classes); AnnotationConfigApplicationContext constructContainerWithBasePackage(String basePackage);  }