Package org.apache.hivemind.util

Examples of org.apache.hivemind.util.URLResource


    private void enqueueJar(File jarFile) throws IOException
    {
        URL jarRootURL = new URL("jar:" + jarFile.toURL() + "!/");

        Resource jarResource = new URLResource(jarRootURL);

        enqueueIfExists(jarResource, XmlModuleDescriptorProvider.HIVE_MODULE_XML);
    }
View Full Code Here


        URL url = getClass().getResource(file);

        if (url == null)
            throw new NullPointerException("No resource named '" + file + "'.");

        return new URLResource(url);
    }
View Full Code Here

        URL url = getClass().getResource(file);

        if (url == null)
            throw new NullPointerException("No resource named '" + file + "'.");

        return new URLResource(url);
    }
View Full Code Here

        }

        while (e.hasMoreElements())
        {
            URL descriptorURL = (URL) e.nextElement();
            Resource descriptorResource = new URLResource(descriptorURL);

            processModule(resolver, descriptorResource);
        }
    }
View Full Code Here

        URL url = getClass().getResource(file);

        if (url == null)
            throw new NullPointerException("No resource named '" + file + "'.");

        return new URLResource(url);
    }
View Full Code Here

    private void enqueueJar(File jarFile) throws IOException
    {
        URL jarRootURL = new URL("jar:" + jarFile.toURL() + "!/");

        Resource jarResource = new URLResource(jarRootURL);

        enqueueIfExists(jarResource, RegistryBuilder.HIVE_MODULE_SDL);
        enqueueIfExists(jarResource, RegistryBuilder.HIVE_MODULE_XML);
    }
View Full Code Here

    private Location newLocation(String file, int lineNumber)
    {
        URL url = getClass().getResource(file);

        Resource resource = new URLResource(url);

        return new LocationImpl(resource, lineNumber);
    }
View Full Code Here

        return resource;
    }

    protected Resource newResource(String path)
    {
        return new URLResource(newURL(path));
    }
View Full Code Here

    private Location newLocation(String file, int lineNumber)
    {
        URL url = getClass().getResource(file);

        Resource resource = new URLResource(url);

        return new LocationImpl(resource, lineNumber);
    }
View Full Code Here

    private void enqueueJar(File jarFile) throws IOException
    {
        URL jarRootURL = new URL("jar:" + jarFile.toURL() + "!/");

        Resource jarResource = new URLResource(jarRootURL);

        enqueueIfExists(jarResource, RegistryBuilder.HIVE_MODULE_XML);
    }
View Full Code Here

TOP

Related Classes of org.apache.hivemind.util.URLResource

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.