|
||||||||||
| 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
| Field Summary | |
|---|---|
static String |
LOCATION
|
static String |
NAME
|
static String |
READONLY
|
| Constructor Summary | |
|---|---|
FileRepo()
|
|
| Method Summary | |
|---|---|
boolean |
canWrite()
Answer if this repository can be used to store files. |
File[] |
get(String bsn,
String versionRange)
Get a list of URLs to bundles that are constrained by the bsn and versionRange. |
String |
getName()
|
File |
getRoot()
|
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 |
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
| Constructor Detail |
|---|
public FileRepo()
| Method Detail |
|---|
public 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 MalformedURLException
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.
MalformedURLExceptionpublic boolean canWrite()
RepositoryPlugin
canWrite in interface RepositoryPlugin
public File put(Jar jar)
throws Exception
RepositoryPlugin
put in interface RepositoryPluginExceptionpublic void setLocation(String string)
public void setReporter(Reporter reporter)
Plugin
setReporter in interface Pluginpublic List<String> list(String regex)
RepositoryPlugin
list in interface RepositoryPluginregex - if not null, match against the bsn and if matches, return otherwise skip
public List<Version> versions(String bsn)
RepositoryPlugin
versions in interface RepositoryPluginpublic String toString()
toString in class Objectpublic File getRoot()
getRoot in interface Refreshablepublic boolean refresh()
refresh in interface Refreshablepublic String getName()
getName in interface RepositoryPlugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||