aQute.lib.deployer
Class FileInstallRepo
java.lang.Object
aQute.lib.deployer.FileRepo
aQute.lib.deployer.FileInstallRepo
- All Implemented Interfaces:
- Plugin, Refreshable, RegistryPlugin, RepositoryPlugin
public class FileInstallRepo
- extends FileRepo
|
Method Summary |
java.io.File[] |
get(java.lang.String bsn,
java.lang.String versionRange)
Get a list of URLs to bundles that are constrained by the bsn and
versionRange. |
java.util.List<java.lang.String> |
list(java.lang.String regex)
Return a list of bsns that are present in the repository. |
java.io.File |
put(Jar jar)
Put a JAR file in the repository. |
boolean |
refresh()
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Give the plugin the remaining properties. |
void |
setReporter(Reporter reporter)
Set the current reporter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FileInstallRepo
public FileInstallRepo()
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.String> map)
- Description copied from interface:
Plugin
- Give the plugin the remaining properties.
When a plugin is declared, the clause can contain extra properties.
All the properties and directives are given to the plugin to use.
- Specified by:
setProperties in interface Plugin- Overrides:
setProperties in class FileRepo
- Parameters:
map - attributes and directives for this plugin's clause
setReporter
public void setReporter(Reporter reporter)
- Description copied from interface:
Plugin
- Set the current reporter. This is called at init time. This plugin
should report all errors and warnings to this reporter.
- Specified by:
setReporter in interface Plugin- Overrides:
setReporter in class FileRepo
put
public java.io.File put(Jar jar)
throws java.lang.Exception
- Description copied from interface:
RepositoryPlugin
- Put a JAR file in the repository.
- Specified by:
put in interface RepositoryPlugin- Overrides:
put in class FileRepo
- Throws:
java.lang.Exception
refresh
public boolean refresh()
- Specified by:
refresh in interface Refreshable- Overrides:
refresh in class FileRepo
list
public java.util.List<java.lang.String> list(java.lang.String regex)
- Description copied from interface:
RepositoryPlugin
- Return a list of bsns that are present in the repository.
- Specified by:
list in interface RepositoryPlugin- Overrides:
list in class FileRepo
- Parameters:
regex - if not null, match against the bsn and if matches, return
otherwise skip
- Returns:
- A list of bsns that match the regex parameter or all if regex is
null
get
public java.io.File[] get(java.lang.String bsn,
java.lang.String versionRange)
throws java.net.MalformedURLException
- Description copied from class:
FileRepo
- Get a list of URLs to bundles that are constrained by the bsn and
versionRange.
- Specified by:
get in interface RepositoryPlugin- Overrides:
get in class FileRepo
- Parameters:
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.
- Returns:
- A list of URLs sorted on version, lowest version is at index 0.
null is returned when no files with the given bsn ould be found.
- Throws:
java.net.MalformedURLException