aQute.lib.deployer.obr
Class OBR
java.lang.Object
aQute.lib.deployer.obr.AbstractBaseOBR
aQute.lib.deployer.obr.OBR
- All Implemented Interfaces:
- OBRIndexProvider, Plugin, RegistryPlugin, RemoteRepositoryPlugin, RepositoryPlugin
- Direct Known Subclasses:
- LocalOBR
public class OBR
- extends AbstractBaseOBR
A simple read-only OBR-based repository that uses a list of index locations
and a basic local cache.
Properties
- locations: comma-separated list of index URLs. NB: surround with single quotes!
- name: repository name; defaults to the index URLs.
- cache: local cache directory. May be omitted, in which case the repository will only be
able to serve resources with
file: URLs.
- location: (deprecated) alias for "locations".
Example
-plugin: aQute.lib.deployer.obr.OBR;locations='http://www.example.com/repository.xml';cache=${workspace}/.cache
|
Constructor Summary |
OBR()
|
| Methods inherited from class aQute.lib.deployer.obr.AbstractBaseOBR |
addResourceToIndex, canWrite, get, get, getHandle, getHandles, getSupportedModes, init, initialiseIndexes, list, parseLocations, put, requestAll, reset, setRegistry, setReporter, versions |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_LOCATIONS
public static final java.lang.String PROP_LOCATIONS
- See Also:
- Constant Field Values
PROP_LOCATION
@Deprecated
public static final java.lang.String PROP_LOCATION
- Deprecated.
- See Also:
- Constant Field Values
PROP_CACHE
public static final java.lang.String PROP_CACHE
- See Also:
- Constant Field Values
locations
protected java.util.List<java.net.URL> locations
cacheDir
protected java.io.File cacheDir
OBR
public OBR()
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.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 AbstractBaseOBR
- Parameters:
map - attributes and directives for this plugin's clause
getOBRIndexes
public java.util.List<java.net.URL> getOBRIndexes()
getCacheDirectory
public java.io.File getCacheDirectory()
setCacheDirectory
public void setCacheDirectory(java.io.File cacheDir)
getName
public java.lang.String getName()
- Specified by:
getName in interface RepositoryPlugin- Overrides:
getName in class AbstractBaseOBR
- Returns:
- The name of the repository
setLocations
public void setLocations(java.net.URL[] urls)