aQute.lib.deployer.obr
Class OBR

java.lang.Object
  extended by aQute.lib.deployer.obr.AbstractBaseOBR
      extended by 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

Example

 -plugin: aQute.lib.deployer.obr.OBR;locations='http://www.example.com/repository.xml';cache=${workspace}/.cache
 

Author:
Neil Bartlett

Nested Class Summary
 
Nested classes/interfaces inherited from interface aQute.bnd.service.RepositoryPlugin
RepositoryPlugin.Strategy
 
Field Summary
protected  File cacheDir
           
protected  List<URL> locations
           
static String PROP_CACHE
           
static String PROP_LOCATION
          Deprecated. 
static String PROP_LOCATIONS
           
 
Fields inherited from class aQute.lib.deployer.obr.AbstractBaseOBR
name, PROP_NAME, PROP_RESOLUTION_MODE, PROP_RESOLUTION_MODE_ANY, registry, reporter, REPOSITORY_FILE_NAME, supportedModes
 
Constructor Summary
OBR()
           
 
Method Summary
 File getCacheDirectory()
           
 String getName()
           
 List<URL> getOBRIndexes()
           
 void setCacheDirectory(File cacheDir)
           
 void setLocations(URL[] urls)
           
 void setProperties(Map<String,String> map)
          Give the plugin the remaining properties.
 
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
 

Field Detail

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
Constructor Detail

OBR

public OBR()
Method Detail

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.