Package org.impalaframework.spring.config

Examples of org.impalaframework.spring.config.ExternalDynamicPropertySource


        }
    }

    //this test will dynamically reflect the value of the classpath resource reload/reloadable.properties
    public void testExternalProperties() throws Exception, InterruptedException {
        ExternalDynamicPropertySource source = new ExternalDynamicPropertySource();
        source.setFileName("reload/reloadable.properties");
        source.setReloadInitialDelay(1);
        source.setReloadInterval(3);
        source.afterPropertiesSet();
       
        while (true) {
            System.out.println(source.getValue("property1"));
            Thread.sleep(1000);
        }
    }
View Full Code Here


    private ExternalDynamicPropertySource source;

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        source = new ExternalDynamicPropertySource();
        source.setFileName("reload/reloadable.properties");
    }
View Full Code Here

        proxyHelper = new ProxyHelper();
    }
   
   
    public void testInterfaces() {
        ExternalDynamicPropertySource source = new ExternalDynamicPropertySource();
        System.out.println(Arrays.asList(ReflectionUtils.findInterfaces(source)));
    }
View Full Code Here

    }
   
    public void testPartialMatch() {
        proxyHelper.setProxyInterfaces(new Class[]{ PropertySource.class, Runnable.class });
       
        final Object proxyObject = proxyHelper.maybeGetProxy(ref(new ExternalDynamicPropertySource()));
        assertTrue(proxyObject instanceof PropertySource);
        assertTrue(proxyObject instanceof Runnable);
        assertFalse(proxyObject instanceof InitializingBean);
    }
View Full Code Here

TOP

Related Classes of org.impalaframework.spring.config.ExternalDynamicPropertySource

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.