Package org.springframework.context.annotation4

Examples of org.springframework.context.annotation4.DependencyBean


    scanner.scan(BASE_PACKAGE);
    context.registerBeanDefinition("clientBean", new RootBeanDefinition(QualifiedClientBean.class));
    context.refresh();

    FactoryMethodComponent fmc = context.getBean("factoryMethodComponent", FactoryMethodComponent.class);
    assertFalse(fmc.getClass().getName().contains(ClassUtils.CGLIB_CLASS_SEPARATOR));

    TestBean tb = (TestBean) context.getBean("publicInstance"); //2
    assertEquals("publicInstance", tb.getName());
    TestBean tb2 = (TestBean) context.getBean("publicInstance"); //2
    assertEquals("publicInstance", tb2.getName());
View Full Code Here

TOP

Related Classes of org.springframework.context.annotation4.DependencyBean

Copyright © 2018 www.massapicom. 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.