aQute.lib.deployer
Class FileInstallRepo

java.lang.Object
  extended by aQute.lib.deployer.FileRepo
      extended by aQute.lib.deployer.FileInstallRepo
All Implemented Interfaces:
Plugin, Refreshable, RegistryPlugin, RepositoryPlugin

public class FileInstallRepo
extends FileRepo


Nested Class Summary
 
Nested classes/interfaces inherited from interface aQute.bnd.service.RepositoryPlugin
RepositoryPlugin.Strategy
 
Field Summary
 
Fields inherited from class aQute.lib.deployer.FileRepo
LOCATION, NAME, READONLY, root
 
Constructor Summary
FileInstallRepo()
           
 
Method Summary
 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.
 
Methods inherited from class aQute.lib.deployer.FileRepo
canWrite, fireBundleAdded, get, getName, getRoot, init, setLocation, setRegistry, toString, versions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileInstallRepo

public FileInstallRepo()
Method Detail

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 bundle
versionRange - 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.