public class FileInstallRepo extends FileRepo
RepositoryPlugin.Strategy
Constructor and Description |
---|
FileInstallRepo() |
Modifier and Type | Method and Description |
---|---|
File[] |
get(String bsn,
String versionRange)
Get a list of URLs to bundles that are constrained by the bsn and
versionRange.
|
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.
|
boolean |
refresh() |
void |
setProperties(Map<String,String> map)
Give the plugin the remaining properties.
|
void |
setReporter(Reporter reporter)
Set the current reporter.
|
canWrite, fireBundleAdded, get, getName, getRoot, init, setLocation, setRegistry, toString, versions
public void setProperties(Map<String,String> map)
Plugin
setProperties
in interface Plugin
setProperties
in class FileRepo
map
- attributes and directives for this plugin's clausepublic void setReporter(Reporter reporter)
Plugin
setReporter
in interface Plugin
setReporter
in class FileRepo
public File put(Jar jar) throws Exception
RepositoryPlugin
put
in interface RepositoryPlugin
put
in class FileRepo
Exception
public boolean refresh()
refresh
in interface Refreshable
refresh
in class FileRepo
public List<String> list(String regex)
RepositoryPlugin
list
in interface RepositoryPlugin
list
in class FileRepo
regex
- if not null, match against the bsn and if matches, return
otherwise skippublic File[] get(String bsn, String versionRange) throws MalformedURLException
FileRepo
get
in interface RepositoryPlugin
get
in class FileRepo
bsn
- Bundle-SymbolicName of the searched bundleversionRange
- Version range for this bundle,"latest" if you only want the
latest, or null when you want all.MalformedURLException
Copyright © 2018 aQute SARL. All rights reserved.