Package org.springframework.beans

Examples of org.springframework.beans.INestedTestBean


                return this;
            }
      };
      ProxyFactory pf = new ProxyFactory(target);
      pf.addAdvice(new DelegatingIntroductionInterceptor(delegate));
      INestedTestBean proxy = (INestedTestBean) pf.getProxy();
     
      assertEquals(company, proxy.getCompany());
      ITestBean introduction = (ITestBean) proxy;
      assertSame("Introduced method returning delegate returns proxy", introduction, introduction.getSpouse());
      assertTrue("Introduced method returning delegate returns proxy", AopUtils.isAopProxy(introduction.getSpouse()));
  }
View Full Code Here


    ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext(
        "/org/springframework/aop/aspectj/autoproxy/aspectsPlusAdvisor.xml");
    StopWatch sw = new StopWatch();
    sw.start("prototype");
    for (int i = 0; i < 100000; i++) {
      INestedTestBean shouldNotBeWeaved = (INestedTestBean) ac.getBean("i21");
      if (i < 10) {
        assertFalse(AopUtils.isAopProxy(shouldNotBeWeaved));
      }
    }
    sw.stop();
View Full Code Here

TOP

Related Classes of org.springframework.beans.INestedTestBean

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.