public interface RepositoryPlugin
Modifier and Type | Interface and Description |
---|---|
static class |
RepositoryPlugin.Strategy |
Modifier and Type | Method and Description |
---|---|
boolean |
canWrite()
Answer if this repository can be used to store files.
|
File[] |
get(String bsn,
String range)
Deprecated.
|
File |
get(String bsn,
String range,
RepositoryPlugin.Strategy strategy,
Map<String,String> properties)
Return a URL to a matching version of the given bundle.
|
String |
getName() |
List<String> |
list(String regex)
Return a list of bsns that are present in the repository.
|
File |
put(Jar jar)
Put a JAR file in the repository.
|
List<Version> |
versions(String bsn)
Return a list of versions.
|
@Deprecated File[] get(String bsn, String range) throws Exception
bsn
- Bundle-SymbolicName of the searched bundlerange
- Version range for this bundle,"latest" if you only want the
latest, or null when you want all.Exception
- when anything goes wrongFile get(String bsn, String range, RepositoryPlugin.Strategy strategy, Map<String,String> properties) throws Exception
bsn
- Bundle-SymbolicName of the searched bundlerange
- Version range for this bundle,"latest" if you only want the
latest, or null when you want all.strategy
- Get the highest or the lowestException
- when anything goes wrongboolean canWrite()
File put(Jar jar) throws Exception
jar
- Exception
List<String> list(String regex) throws Exception
regex
- if not null, match against the bsn and if matches, return
otherwise skipException
List<Version> versions(String bsn) throws Exception
Exception
String getName()
Copyright © 2015 aQute SARL. All rights reserved.