Package org.impalaframework.spring.resource

Examples of org.impalaframework.spring.resource.DirectoryResource


        Class<?> cls1 = Class.forName("org.impalaframework.interactive.command.CommandStateConstants", false, pcl);
        assertSame(cls1.getClassLoader(), pcl);
    }
   
    public void testLoadClassURL() throws Exception {
        ModuleClassLoader pcl = new ModuleClassLoader(new URL[] { new DirectoryResource(getCompileFile("impala-interactive")).getURL() });

        // check that this class loader loads the named class
        Class<?> cls1 = Class.forName("org.impalaframework.interactive.command.CommandStateConstants", false, pcl);
        assertSame(cls1.getClassLoader(), pcl);
    }
View Full Code Here


        Class<?> cls1 = Class.forName("classes.FileMonitorBean1", false, pcl);
        assertSame(cls1.getClassLoader(), pcl);
    }
   
    public void testLoadParentURL() throws Exception {
        ParentClassLoader pcl = new ParentClassLoader(new URL[] { new DirectoryResource(getCompileFile("sample-module1")).getURL() });

        // check that this class loader loads the named class
        Class<?> cls1 = Class.forName("classes.FileMonitorBean1", false, pcl);
        assertSame(cls1.getClassLoader(), pcl);
    }
View Full Code Here

        Class<?> cls1 = Class.forName("classes.FileMonitorBean1", false, pcl);
        assertSame(cls1.getClassLoader(), pcl);
    }
   
    public void testLoadResolveTrue() throws Exception {
        ParentClassLoader pcl = new ParentClassLoader(new URL[] { new DirectoryResource(getCompileFile("sample-module1")).getURL() });

        // check that this class loader loads the named class
        Class<?> cls1 = pcl.loadClass("classes.FileMonitorBean1", true);
        assertSame(cls1.getClassLoader(), pcl);
    }
View Full Code Here

        Class<?> cls1 = pcl.loadClass("classes.FileMonitorBean1", true);
        assertSame(cls1.getClassLoader(), pcl);
    }
   
    public void testLoadResolveFalse() throws Exception {
        ParentClassLoader pcl = new ParentClassLoader(new URL[] { new DirectoryResource(getCompileFile("sample-module1")).getURL() });

        // check that this class loader loads the named class
        Class<?> cls1 = pcl.loadClass("classes.FileMonitorBean1", false);
        assertSame(cls1.getClassLoader(), pcl);
    }
View Full Code Here

    public final void testCreateFromResources() throws Exception {

        List<Resource> resources = new ArrayList<Resource>();
        for (File file : files) {
            if (file.isDirectory())
                resources.add(new DirectoryResource(file));
            else
                resources.add(new FileSystemResource(file));
        }
        URL[] urls = URLUtils.createUrls(resources);
        checkUrls(urls);
View Full Code Here

TOP

Related Classes of org.impalaframework.spring.resource.DirectoryResource

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.