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
FileInstallRepo
public FileInstallRepo()
setProperties
public void setProperties(Map<String,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 File put(Jar jar)
throws 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:
Exception
refresh
public boolean refresh()
- Specified by:
refresh in interface Refreshable- Overrides:
refresh in class FileRepo
list
public List<String> list(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 File[] get(String bsn,
String versionRange)
throws 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:
MalformedURLException
Copyright © 2012 aQute SARL. All Rights Reserved.