Stuart McCulloch | 26e7a5a | 2011-10-17 10:31:43 +0000 | [diff] [blame^] | 1 | package aQute.bnd.service; |
| 2 | |
| 3 | import java.util.Map; |
| 4 | |
| 5 | public interface RemoteRepositoryPlugin extends RepositoryPlugin { |
| 6 | /** |
| 7 | * Retrieve a resource handle from the repository. For all implementations of this interface, calling {@code getFile(bsn, range, strategy, props)} |
| 8 | * should always return the same result as {@code getResource(bsn, range, strategy, props).request()}. |
| 9 | * @param bsn |
| 10 | * @param range |
| 11 | * @param strategy |
| 12 | * @param properties |
| 13 | * @return |
| 14 | * @throws Exception |
| 15 | */ |
| 16 | ResourceHandle getHandle(String bsn, String range, Strategy strategy, Map<String,String> properties) throws Exception; |
| 17 | } |