### Question:
AutowireApplicationContext extends DefaultListableBeanFactory implements AutowireCapableBeanFactory { public AutowireApplicationContext(Resource resource) throws Exception { super(resource); refresh(); } AutowireApplicationContext(Resource resource);  AutowireApplicationContext(String location); @Override void AutowireBean();  }### Answer:
@Test public void testAutowireApplicationContext() { FileSystemResource fsr = new FileSystemResource("src/main/resource/application.xml"); try { AutowireApplicationContext aac = new AutowireApplicationContext(fsr); AutowiredBean autowiredbean=aac.getBean("autowiredbean", AutowiredBean.class); ComponentBean cb = aac.getBean("componentbean", ComponentBean.class); DependComponentBean dcb = aac.getBean("dependcomponentbean", DependComponentBean.class); log.info(cb.toString()); log.info(dcb.toString()); log.info(Assert.isNull(autowiredbean.getBeana().getFood().say())); log.info(autowiredbean.getBeana().getPeople().getFood().say()); } catch (Exception e) { e.printStackTrace(); } }