Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 1 | package aQute.bnd.service; |
| 2 | |
| 3 | import java.io.*; |
| 4 | import java.util.*; |
| 5 | |
| 6 | public interface RemoteRepositoryPlugin extends RepositoryPlugin { |
| 7 | /** |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 8 | * Retrieve a resource handle from the repository. For all implementations |
| 9 | * of this interface, calling {@code getFile(bsn, range, strategy, props)} |
Stuart McCulloch | 2a0afd6 | 2012-09-06 18:28:06 +0000 | [diff] [blame^] | 10 | * should always return the same result as {@link RepositoryPlugin#get(String, aQute.bnd.version.Version, Map)} |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 11 | * |
Stuart McCulloch | 2a0afd6 | 2012-09-06 18:28:06 +0000 | [diff] [blame^] | 12 | * @param bsn the bsn of the revision |
| 13 | * @param version the version of the revision |
| 14 | * @param strategy strategy |
| 15 | * @param properties any properties |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 16 | * @return |
| 17 | * @throws Exception |
| 18 | */ |
Stuart McCulloch | 2a0afd6 | 2012-09-06 18:28:06 +0000 | [diff] [blame^] | 19 | ResourceHandle getHandle(String bsn, String version, Strategy strategy, Map<String,String> properties) |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame] | 20 | throws Exception; |
| 21 | |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 22 | File getCacheDirectory(); |
| 23 | } |