|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectaQute.bnd.maven.MavenRepository
public class MavenRepository
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface aQute.bnd.service.RepositoryPlugin |
|---|
RepositoryPlugin.DownloadListener, RepositoryPlugin.PutOptions, RepositoryPlugin.PutResult |
| Field Summary | |
|---|---|
static String |
NAME
|
| Fields inherited from interface aQute.bnd.service.RepositoryPlugin |
|---|
DEFAULTOPTIONS |
| Constructor Summary | |
|---|---|
MavenRepository()
|
|
| Method Summary | |
|---|---|
boolean |
canWrite()
Answer if this repository can be used to store files. |
File |
get(String bsn,
String range,
Strategy strategy,
Map<String,String> properties)
|
File |
get(String bsn,
Version version,
Map<String,String> properties,
RepositoryPlugin.DownloadListener... listeners)
Return a URL to a matching version of the given bundle. |
String[] |
getGroupAndArtifact(String bsn)
|
String |
getLocation()
Return a location identifier of this repository |
String |
getName()
|
List<String> |
list(String regex)
Return a list of bsns that are present in the repository. |
RepositoryPlugin.PutResult |
put(InputStream stream,
RepositoryPlugin.PutOptions options)
Put an artifact (from the InputStream) into the repository. There is NO guarantee that the artifact on the input stream has not been modified after it's been put in the repository since that is dependent on the implementation of the repository (see RepositoryPlugin.PutOptions#allowArtifactChange). |
void |
setProperties(Map<String,String> map)
Give the plugin the remaining properties. |
void |
setReporter(Reporter processor)
Set the current reporter. |
void |
setRoot(File f)
|
String |
toString()
|
SortedSet<Version> |
versions(String bsn)
Return a list of versions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
| Constructor Detail |
|---|
public MavenRepository()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic boolean canWrite()
RepositoryPlugin
canWrite in interface RepositoryPluginpublic List<String> list(String regex)
RepositoryPlugin
list in interface RepositoryPluginregex - A null.
public RepositoryPlugin.PutResult put(InputStream stream,
RepositoryPlugin.PutOptions options)
throws Exception
RepositoryPluginRepositoryPlugin.PutOptions#allowArtifactChange).
put in interface RepositoryPluginstream - The input stream with the artifactoptions - The put options. See RepositoryPlugin.PutOptions, can
be null, which will then take the default options like
new PutOptions().
RepositoryPlugin.PutResult
Exception - When the repository root directory doesn't exist, when the
repository is read-only, when the specified checksum doesn't
match the checksum of the fetched artifact (see
RepositoryPlugin.PutOptions.digest), when the
implementation wants to modify the artifact but isn't allowed
(see RepositoryPlugin.PutOptions#allowArtifactChange
), or when another error has occurred.
public SortedSet<Version> versions(String bsn)
throws Exception
RepositoryPlugin
versions in interface RepositoryPluginExceptionpublic void setProperties(Map<String,String> map)
Plugin
setProperties in interface Pluginmap - attributes and directives for this plugin's clausepublic void setReporter(Reporter processor)
Plugin
setReporter in interface Pluginpublic String[] getGroupAndArtifact(String bsn)
getGroupAndArtifact in interface BsnToMavenPathpublic String getName()
getName in interface RepositoryPlugin
public File get(String bsn,
String range,
Strategy strategy,
Map<String,String> properties)
throws Exception
Exceptionpublic void setRoot(File f)
public String getLocation()
RepositoryPlugin
getLocation in interface RepositoryPlugin
public File get(String bsn,
Version version,
Map<String,String> properties,
RepositoryPlugin.DownloadListener... listeners)
throws Exception
RepositoryPlugin
get in interface RepositoryPluginbsn - Bundle-SymbolicName of the searched bundleversion - Version requestedlisteners - Zero or more download listener that will be notified of the
outcome.
Exception - when anything goes wrong, in this case no listeners will be
called back.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||