|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryPlugin
Nested Class Summary | |
---|---|
static class |
RepositoryPlugin.Strategy
|
Method Summary | |
---|---|
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. |
Method Detail |
---|
@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 lowest
Exception
- 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 skip
Exception
List<Version> versions(String bsn) throws Exception
Exception
String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |