|
|||||||||
| 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 java.lang.String |
LOCATION
|
static java.lang.String |
NAME
|
static java.lang.String |
READONLY
|
protected java.io.File |
root
|
| Constructor Summary | |
|---|---|
FileRepo()
|
|
FileRepo(java.lang.String name,
java.io.File location,
boolean canWrite)
|
|
| Method Summary | |
|---|---|
boolean |
canWrite()
Answer if this repository can be used to store files. |
protected void |
fireBundleAdded(Jar jar,
java.io.File file)
|
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.io.File |
get(java.lang.String bsn,
java.lang.String version,
RepositoryPlugin.Strategy strategy,
java.util.Map<java.lang.String,java.lang.String> properties)
Return a URL to a matching version of the given bundle. |
java.lang.String |
getName()
|
java.io.File |
getRoot()
|
protected void |
init()
|
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 |
setLocation(java.lang.String string)
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Give the plugin the remaining properties. |
void |
setRegistry(Registry registry)
|
void |
setReporter(Reporter reporter)
Set the current reporter. |
java.lang.String |
toString()
|
java.util.List<Version> |
versions(java.lang.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 java.lang.String LOCATION
public static java.lang.String READONLY
public static java.lang.String NAME
protected java.io.File root
| Constructor Detail |
|---|
public FileRepo()
public FileRepo(java.lang.String name,
java.io.File location,
boolean canWrite)
| Method Detail |
|---|
protected void init()
throws java.lang.Exception
java.lang.Exceptionpublic void setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Plugin
setProperties in interface Pluginmap - attributes and directives for this plugin's clause
public java.io.File[] get(java.lang.String bsn,
java.lang.String versionRange)
throws java.lang.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.
java.lang.Exception - when anything goes wrongpublic boolean canWrite()
RepositoryPlugin
canWrite in interface RepositoryPlugin
public java.io.File put(Jar jar)
throws java.lang.Exception
RepositoryPlugin
put in interface RepositoryPluginjava.lang.Exception
protected void fireBundleAdded(Jar jar,
java.io.File file)
public void setLocation(java.lang.String string)
public void setReporter(Reporter reporter)
Plugin
setReporter in interface Plugin
public java.util.List<java.lang.String> list(java.lang.String regex)
throws java.lang.Exception
RepositoryPlugin
list in interface RepositoryPluginregex - if not null, match against the bsn and if matches, return
otherwise skip
java.lang.Exception
public java.util.List<Version> versions(java.lang.String bsn)
throws java.lang.Exception
RepositoryPlugin
versions in interface RepositoryPluginjava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.io.File getRoot()
getRoot in interface Refreshablepublic boolean refresh()
refresh in interface Refreshablepublic java.lang.String getName()
getName in interface RepositoryPlugin
public java.io.File get(java.lang.String bsn,
java.lang.String version,
RepositoryPlugin.Strategy strategy,
java.util.Map<java.lang.String,java.lang.String> properties)
throws java.lang.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
java.lang.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 | ||||||||