Package org.jboss.shrinkwrap.api

Examples of org.jboss.shrinkwrap.api.ArchivePath


        return new Enumerator(Arrays.asList(url));
    }

    @Override
    protected URL findResource(final String name) {
        ArchivePath path = ArchivePaths.create(prefix + name);
        Node node = archive.get(path);
        if (node == null) {
            path = ArchivePaths.create(name);
            node = archive.get(path);
        }
View Full Code Here


        this.archive = ar;
    }

    @Override
    protected Enumeration<URL> findResources(final String name) throws IOException {
        final ArchivePath path = ArchivePaths.create(prefix + name);
        final Node node = archive.get(path);
        if (node != null) {
            return new Enumerator(Arrays.asList(new URL(null, "archive:" + archive.getName() + "/", new ArchiveStreamHandler(node, closeables))));
        }
        return super.findResources(name);
View Full Code Here

        return super.findResources(name);
    }

    @Override
    protected URL findResource(String name) {
        final ArchivePath path = ArchivePaths.create(prefix + name);
        final Node node = archive.get(path);
        if (node != null) {
            try {
                return new URL(null, "archive:" + archive.getName() + "/", new ArchiveStreamHandler(node, closeables));
            } catch (MalformedURLException e) {
View Full Code Here

     * @see {@link ByteAssetClassNotFoundException}
     */
    @Override
    protected Class<?> findClass(String name) throws ClassNotFoundException {

        ArchivePath path = type.asArchivePath(name);

        if (!archive.contains(path)) {
            throw new ByteAssetClassNotFoundException("Unable to find class " + name + " in archive " + archive.getName());
        }

View Full Code Here

TOP

Related Classes of org.jboss.shrinkwrap.api.ArchivePath

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.