Examples of destroyBean()


Examples of org.springframework.beans.factory.support.DefaultListableBeanFactory.destroyBean()

    ResourceInjectionBean anotherBean = (ResourceInjectionBean) bf.getBean("annotatedBean");
    assertNotSame(anotherBean, bean);
    assertNotSame(anotherBean.getTestBean(), tb);
    assertNotSame(anotherBean.getTestBean2(), tb2);

    bf.destroyBean("annotatedBean", bean);
    assertTrue(bean.destroyCalled);
    assertTrue(bean.destroy2Called);
    assertTrue(bean.destroy3Called);
  }
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.