Package org.impalaframework.file

Examples of org.impalaframework.file.FileMonitor.lastModified()


        bean1 = (FileMonitor) parent.getBean("bean1");
        assertEquals(999L, bean1.lastModified((File) null));

        FileMonitor bean3 = (FileMonitor) parent.getBean("bean3");
        try {
            bean3.lastModified((File) null);
            fail();
        }
        catch (NoServiceException e) {
        }
View Full Code Here


        catch (NoServiceException e) {
        }

        ModuleDefinition p2 = root.getChildModuleDefinition(plugin2);
        addModule(new SimpleModuleDefinition(p2, plugin3));
        assertEquals(333L, bean3.lastModified((File) null));

        final ConfigurableApplicationContext applicationPlugin3 = SpringModuleUtils.getModuleSpringContext(moduleStateHolder, plugin3);
        applicationPlugin3.close();

        try {
View Full Code Here

        final ConfigurableApplicationContext applicationPlugin3 = SpringModuleUtils.getModuleSpringContext(moduleStateHolder, plugin3);
        applicationPlugin3.close();

        try {
            bean3.lastModified((File) null);
            fail();
        }
        catch (NoServiceException e) {
        }
    }
View Full Code Here

        assertNotNull(parent);
        ModuleTestUtils.checkHasPostProcessor(true, parent, ServiceRegistryPostProcessor.class);
        ModuleTestUtils.checkHasPostProcessor(true, parent, ModuleDefinitionPostProcessor.class);

        FileMonitor bean3 = (FileMonitor) parent.getBean("bean3");
        bean3.lastModified((File) null);

        // check that all three modules have loaded
        assertEquals(4, moduleStateHolder.getRuntimeModules().size());
    }
View Full Code Here

        ModuleStateHolder moduleStateHolder = application.getModuleStateHolder();
        transitionManager.processTransitions(moduleStateHolder, application, transitions);

        ConfigurableApplicationContext parentContext = SpringModuleUtils.getRootSpringContext(moduleStateHolder);
        FileMonitor bean = (FileMonitor) parentContext.getBean("bean1");
        bean.lastModified((File) null);
    }

    class Provider implements ModuleDefinitionSource {
        ModuleDefinitionSource spec = new SimpleModuleDefinitionSource("impala-core", new String[] { "parentTestContext.xml" }, new String[] { plugin1, plugin2 });
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.