Package org.springframework.aop.target.dynamic

Examples of org.springframework.aop.target.dynamic.AbstractRefreshableTargetSource



  public void testDefaultRefreshCheckDelay() throws Exception {
    ApplicationContext context = new ClassPathXmlApplicationContext(CONFIG);
    Advised advised = (Advised) context.getBean("testBean");
    AbstractRefreshableTargetSource targetSource =
        ((AbstractRefreshableTargetSource) advised.getTargetSource());
    Field field = AbstractRefreshableTargetSource.class.getDeclaredField("refreshCheckDelay");
    field.setAccessible(true);
    long delay = ((Long) field.get(targetSource)).longValue();
    assertEquals(5000L, delay);
View Full Code Here



  public void testDefaultRefreshCheckDelay() throws Exception {
    ApplicationContext context = new ClassPathXmlApplicationContext(CONFIG);
    Advised advised = (Advised) context.getBean("testBean");
    AbstractRefreshableTargetSource targetSource =
        ((AbstractRefreshableTargetSource) advised.getTargetSource());
    Field field = AbstractRefreshableTargetSource.class.getDeclaredField("refreshCheckDelay");
    field.setAccessible(true);
    long delay = ((Long) field.get(targetSource)).longValue();
    assertEquals(5000L, delay);
View Full Code Here

TOP

Related Classes of org.springframework.aop.target.dynamic.AbstractRefreshableTargetSource

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.