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
- Author:
- Neil Bartlett
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 String PROP_LOCATIONS
- See Also:
- Constant Field Values
PROP_LOCATION
@Deprecated
public static final String PROP_LOCATION
- Deprecated.
- See Also:
- Constant Field Values
PROP_CACHE
public static final String PROP_CACHE
- See Also:
- Constant Field Values
locations
protected List<URL> locations
cacheDir
protected File cacheDir
OBR
public OBR()
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 AbstractBaseOBR
- Parameters:
map
- attributes and directives for this plugin's clause
getOBRIndexes
public List<URL> getOBRIndexes()
getCacheDirectory
public File getCacheDirectory()
setCacheDirectory
public void setCacheDirectory(File cacheDir)
getName
public String getName()
- Specified by:
getName
in interface RepositoryPlugin
- Overrides:
getName
in class AbstractBaseOBR
- Returns:
- The name of the repository
setLocations
public void setLocations(URL[] urls)
Copyright © 2012 aQute SARL. All Rights Reserved.