Package org.springframework.context.support

Examples of org.springframework.context.support.GenericApplicationContext.containsBeanDefinition()


        genericBeanDefinition(ConfigurationClassPostProcessor.class).getBeanDefinition());
    GenericApplicationContext ctx = new GenericApplicationContext(bf);
    ctx.refresh();
    ctx.getBean(ComponentScanAnnotatedConfig.class);
    ctx.getBean(TestBean.class);
    assertThat("config class bean not found", ctx.containsBeanDefinition("componentScanAnnotatedConfig"), is(true));
    assertThat("@ComponentScan annotated @Configuration class registered " +
        "as bean definition did not trigger component scanning as expected",
        ctx.containsBean("fooServiceImpl"), is(true));
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.