|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectaQute.bnd.maven.support.MavenRemoteRepository
public class MavenRemoteRepository
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface aQute.bnd.service.RepositoryPlugin |
---|
RepositoryPlugin.Strategy |
Constructor Summary | |
---|---|
MavenRemoteRepository()
|
Method Summary | |
---|---|
boolean |
canWrite()
Answer if this repository can be used to store files. |
File[] |
get(String bsn,
String range)
Return a URL to a matching version of the given bundle. |
File |
get(String bsn,
String version,
RepositoryPlugin.Strategy strategy,
Map<String,String> properties)
Return a URL to a matching version of the given bundle. |
Maven |
getMaven()
|
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. |
void |
setMaven(Maven maven)
|
void |
setProperties(Map<String,String> map)
Give the plugin the remaining properties. |
void |
setRegistry(Registry registry)
|
void |
setReporter(Reporter reporter)
Set the current reporter. |
void |
setRepositories(URI... urls)
|
List<Version> |
versions(String bsn)
Return a list of versions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MavenRemoteRepository()
Method Detail |
---|
public File[] get(String bsn, String range) throws Exception
RepositoryPlugin
get
in interface RepositoryPlugin
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 wrongpublic File get(String bsn, String version, RepositoryPlugin.Strategy strategy, Map<String,String> properties) throws Exception
RepositoryPlugin
get
in interface RepositoryPlugin
bsn
- Bundle-SymbolicName of the searched bundleversion
- 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 wrongpublic Maven getMaven()
public boolean canWrite()
RepositoryPlugin
canWrite
in interface RepositoryPlugin
public File put(Jar jar) throws Exception
RepositoryPlugin
put
in interface RepositoryPlugin
Exception
public List<String> list(String regex) throws Exception
RepositoryPlugin
list
in interface RepositoryPlugin
regex
- if not null, match against the bsn and if matches, return
otherwise skip
Exception
public List<Version> versions(String bsn) throws Exception
RepositoryPlugin
versions
in interface RepositoryPlugin
Exception
public String getName()
getName
in interface RepositoryPlugin
public void setRepositories(URI... urls)
public void setProperties(Map<String,String> map)
Plugin
setProperties
in interface Plugin
map
- attributes and directives for this plugin's clausepublic void setReporter(Reporter reporter)
Plugin
setReporter
in interface Plugin
public void setRegistry(Registry registry)
setRegistry
in interface RegistryPlugin
public void setMaven(Maven maven)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |