@Deprecated public class MavenRepository extends java.lang.Object implements RepositoryPlugin, Plugin, BsnToMavenPath
RepositoryPlugin.DownloadListener, RepositoryPlugin.PutOptions, RepositoryPlugin.PutResult
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
logger
Deprecated.
|
(package private) static java.lang.String |
MAVEN_REPO_LOCAL
Deprecated.
|
(package private) java.lang.String |
name
Deprecated.
|
static java.lang.String |
NAME
Deprecated.
|
(package private) Reporter |
reporter
Deprecated.
|
(package private) java.io.File |
root
Deprecated.
|
DEFAULTOPTIONS
Constructor and Description |
---|
MavenRepository()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canWrite()
Deprecated.
Answer if this repository can be used to store files.
|
(package private) void |
find(java.util.List<java.lang.String> bsns,
java.util.regex.Pattern pattern,
java.io.File base,
java.lang.String name)
Deprecated.
|
(package private) java.io.File[] |
find(java.lang.String groupId,
java.lang.String artifactId,
VersionRange range)
Deprecated.
|
private java.io.File[] |
get(java.lang.String bsn,
java.lang.String version)
Deprecated.
|
java.io.File |
get(java.lang.String bsn,
java.lang.String range,
Strategy strategy,
java.util.Map<java.lang.String,java.lang.String> properties)
Deprecated.
|
java.io.File |
get(java.lang.String bsn,
Version version,
java.util.Map<java.lang.String,java.lang.String> properties,
RepositoryPlugin.DownloadListener... listeners)
Deprecated.
Return a URL to a matching version of the given bundle.
|
java.lang.String[] |
getGroupAndArtifact(java.lang.String bsn)
Deprecated.
|
java.lang.String |
getLocation()
Deprecated.
Return a location identifier of this repository
|
java.lang.String |
getName()
Deprecated.
|
java.util.List<java.lang.String> |
list(java.lang.String regex)
Deprecated.
Return a list of bsns that are present in the repository.
|
RepositoryPlugin.PutResult |
put(java.io.InputStream stream,
RepositoryPlugin.PutOptions options)
Deprecated.
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. |
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Deprecated.
Give the plugin the remaining properties.
|
void |
setReporter(Reporter processor)
Deprecated.
Set the current reporter.
|
void |
setRoot(java.io.File f)
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
java.util.SortedSet<Version> |
versions(java.lang.String bsn)
Deprecated.
Return a list of versions.
|
private static final org.slf4j.Logger logger
public static final java.lang.String NAME
static final java.lang.String MAVEN_REPO_LOCAL
java.io.File root
Reporter reporter
java.lang.String name
public java.lang.String toString()
toString
in class java.lang.Object
public boolean canWrite()
RepositoryPlugin
canWrite
in interface RepositoryPlugin
private java.io.File[] get(java.lang.String bsn, java.lang.String version) throws java.lang.Exception
java.lang.Exception
java.io.File[] find(java.lang.String groupId, java.lang.String artifactId, VersionRange range)
public java.util.List<java.lang.String> list(java.lang.String regex)
RepositoryPlugin
list
in interface RepositoryPlugin
regex
- A
null
.void find(java.util.List<java.lang.String> bsns, java.util.regex.Pattern pattern, java.io.File base, java.lang.String name)
public RepositoryPlugin.PutResult put(java.io.InputStream stream, RepositoryPlugin.PutOptions options) throws java.lang.Exception
RepositoryPlugin
put
in interface RepositoryPlugin
stream
- 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
java.lang.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, or when another error has occurred.public java.util.SortedSet<Version> versions(java.lang.String bsn) throws java.lang.Exception
RepositoryPlugin
versions
in interface RepositoryPlugin
java.lang.Exception
public void setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Plugin
setProperties
in interface Plugin
map
- attributes and directives for this plugin's clausepublic void setReporter(Reporter processor)
Plugin
setReporter
in interface Plugin
public java.lang.String[] getGroupAndArtifact(java.lang.String bsn)
getGroupAndArtifact
in interface BsnToMavenPath
public java.lang.String getName()
getName
in interface RepositoryPlugin
public java.io.File get(java.lang.String bsn, java.lang.String range, Strategy strategy, java.util.Map<java.lang.String,java.lang.String> properties) throws java.lang.Exception
java.lang.Exception
public void setRoot(java.io.File f)
public java.lang.String getLocation()
RepositoryPlugin
getLocation
in interface RepositoryPlugin
public java.io.File get(java.lang.String bsn, Version version, java.util.Map<java.lang.String,java.lang.String> properties, RepositoryPlugin.DownloadListener... listeners) throws java.lang.Exception
RepositoryPlugin
get
in interface RepositoryPlugin
bsn
- Bundle-SymbolicName of the searched bundleversion
- Version requestedlisteners
- Zero or more download listener that will be notified of
the outcome.java.lang.Exception
- when anything goes wrong, in this case no listeners
will be called back.