Package org.apache.hivemind.util

Examples of org.apache.hivemind.util.URLResource


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

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

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


    {
        XmlResourceProcessor processor = new XmlResourceProcessor(getClassResolver(),
                new DefaultErrorHandler());

        Resource[] missingResources = new Resource[]
        { new FileResource("foo"), new URLResource(new URL("file://MissingFile")) };

        for (int i = 0; i < missingResources.length; i++)
        {
            try
            {
View Full Code Here

                }
                continue;
            }

            LOG.debug("Will process hivemind main file: " + descriptorURL);
            descriptors.add(new URLResource(descriptorURL));
        }

        return descriptors;
    }
View Full Code Here

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

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

    protected 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

    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.