|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectaQute.lib.deployer.FileRepo
public class FileRepo
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface aQute.bnd.service.RepositoryPlugin |
|---|
RepositoryPlugin.Strategy |
| Field Summary | |
|---|---|
static String |
LOCATION
|
static String |
NAME
|
static String |
READONLY
|
protected File |
root
|
| Constructor Summary | |
|---|---|
FileRepo()
|
|
FileRepo(String name,
File location,
boolean canWrite)
|
|
| Method Summary | |
|---|---|
boolean |
canWrite()
Answer if this repository can be used to store files. |
protected void |
fireBundleAdded(Jar jar,
File file)
|
File[] |
get(String bsn,
String versionRange)
Get a list of URLs to bundles that are constrained by the bsn and versionRange. |
File |
get(String bsn,
String version,
RepositoryPlugin.Strategy strategy,
Map<String,String> properties)
Return a URL to a matching version of the given bundle. |
String |
getName()
|
File |
getRoot()
|
protected void |
init()
|
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 |
setLocation(String string)
|
void |
setProperties(Map<String,String> map)
Give the plugin the remaining properties. |
void |
setRegistry(Registry registry)
|
void |
setReporter(Reporter reporter)
Set the current reporter. |
String |
toString()
|
List<Version> |
versions(String bsn)
Return a list of versions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String LOCATION
public static String READONLY
public static String NAME
protected File root
| Constructor Detail |
|---|
public FileRepo()
public FileRepo(String name,
File location,
boolean canWrite)
| Method Detail |
|---|
protected void init()
throws Exception
Exceptionpublic void setProperties(Map<String,String> map)
Plugin
setProperties in interface Pluginmap - attributes and directives for this plugin's clause
public File[] get(String bsn,
String versionRange)
throws Exception
get in interface RepositoryPluginbsn - Bundle-SymbolicName of the searched bundleversionRange - Version range for this bundle,"latest" if you only want the
latest, or null when you want all.
Exception - when anything goes wrongpublic boolean canWrite()
RepositoryPlugin
canWrite in interface RepositoryPlugin
public File put(Jar jar)
throws Exception
RepositoryPlugin
put in interface RepositoryPluginException
protected void fireBundleAdded(Jar jar,
File file)
public void setLocation(String string)
public void setReporter(Reporter reporter)
Plugin
setReporter in interface Plugin
public List<String> list(String regex)
throws Exception
RepositoryPlugin
list in interface RepositoryPluginregex - if not null, match against the bsn and if matches, return
otherwise skip
Exception
public List<Version> versions(String bsn)
throws Exception
RepositoryPlugin
versions in interface RepositoryPluginExceptionpublic String toString()
toString in class Objectpublic File getRoot()
getRoot in interface Refreshablepublic boolean refresh()
refresh in interface Refreshablepublic String getName()
getName in interface RepositoryPlugin
public File get(String bsn,
String version,
RepositoryPlugin.Strategy strategy,
Map<String,String> properties)
throws Exception
RepositoryPlugin
get in interface RepositoryPluginbsn - Bundle-SymbolicName of the searched bundleversion - Version range for this bundle,"latest" if you only want the
latest, or null when you want all.strategy - Get the highest or the lowest
Exception - when anything goes wrongpublic void setRegistry(Registry registry)
setRegistry in interface RegistryPlugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||