Package aQute.bnd.service

Examples of aQute.bnd.service.ResourceHandle.request()


        try {
            File file;
            if (repo instanceof RemoteRepositoryPlugin) {
                ResourceHandle handle = ((RemoteRepositoryPlugin) repo).getHandle(bsn, "latest", Strategy.HIGHEST, null);
                if (handle.getLocation() == Location.local || handle.getLocation() == Location.remote_cached)
                    file = handle.request();
                else
                    file = null;
            } else {
                SortedSet<Version> versions = repo.versions(bsn);
                if (versions == null || versions.isEmpty())
View Full Code Here


    this.reporter = reporter;
  }
 
  public File get(String bsn, String range, Strategy strategy, Map<String, String> properties) throws Exception {
    ResourceHandle handle = getHandle(bsn, range, strategy, properties);
    return handle != null ? handle.request() : null;
  }
 
  public ResourceHandle getHandle(String bsn, String range, Strategy strategy, Map<String, String> properties) throws Exception {
    ResourceHandle result;
    if (bsn != null)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.