Package org.jboss.gravia.repository

Examples of org.jboss.gravia.repository.MavenIdentityRepository


            return addAbstractResource(resource, writeXML);
        }
    }

    private Resource getMavenResource(MavenCoordinates mavenid) {
        MavenIdentityRepository mvnrepo = null;
        Repository delegate = getRepository().getDelegate();
        if (delegate instanceof MavenIdentityRepository) {
            mvnrepo = (MavenIdentityRepository) delegate;
        } else if (delegate instanceof RepositoryAggregator) {
            RepositoryAggregator aggregator = (RepositoryAggregator) delegate;
            for (Repository repo : aggregator.getDelegates()) {
                if (repo instanceof MavenIdentityRepository) {
                    mvnrepo = (MavenIdentityRepository) repo;
                    break;
                }
            }
        }
        return mvnrepo != null ? mvnrepo.findMavenResource(mavenid) : null;
    }
View Full Code Here

TOP

Related Classes of org.jboss.gravia.repository.MavenIdentityRepository

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.