Package org.apache.hivemind.util

Examples of org.apache.hivemind.util.URLResource


        while (e.hasMoreElements())
        {
            URL descriptorURL = (URL) e.nextElement();

            descriptors.add(new URLResource(descriptorURL));
        }

        return descriptors;
    }
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

    private static final String LINEBREAK = System.getProperty("line.separator");

    private Element parse(String file) throws Exception
    {
        URL fileURL = getClass().getResource(file);
        Resource r = new URLResource(fileURL);

        ElementAssembler a = new ElementAssembler();

        return a.parse(r);
    }
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

        return resource;
    }

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

    private IAsset findAsset(String path, String description)
    {
        IAsset asset = null;
        if ( !HiveMind.isBlank(path) )
        {
            Location location = new DescribedLocation(new URLResource(path), description);
            asset = _assetSource.findAsset(null, path, null, location);
        }
        return asset;
    }
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

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.