aQute.lib.deployer.obr
Class LocalOBR

java.lang.Object
  extended by aQute.lib.deployer.obr.AbstractBaseOBR
      extended by aQute.lib.deployer.obr.OBR
          extended by aQute.lib.deployer.obr.LocalOBR
All Implemented Interfaces:
OBRIndexProvider, Plugin, Refreshable, RegistryPlugin, RemoteRepositoryPlugin, RepositoryPlugin

public class LocalOBR
extends OBR
implements Refreshable


Nested Class Summary
 
Nested classes/interfaces inherited from interface aQute.bnd.service.RepositoryPlugin
RepositoryPlugin.Strategy
 
Field Summary
static String PROP_LOCAL_DIR
           
static String PROP_READONLY
           
 
Fields inherited from class aQute.lib.deployer.obr.OBR
cacheDir, locations, PROP_CACHE, PROP_LOCATION, 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
LocalOBR()
           
 
Method Summary
 boolean canWrite()
          Answer if this repository can be used to store files.
 List<URL> getOBRIndexes()
           
 File getRoot()
           
protected  void initialiseIndexes()
          Initialize the indexes prior to main initialisation of internal data structures.
 File put(Jar jar)
          Put a JAR file in the repository.
 boolean refresh()
           
 void setProperties(Map<String,String> map)
          Give the plugin the remaining properties.
 void setReporter(Reporter reporter)
          Set the current reporter.
 
Methods inherited from class aQute.lib.deployer.obr.OBR
getCacheDirectory, getName, setCacheDirectory, setLocations
 
Methods inherited from class aQute.lib.deployer.obr.AbstractBaseOBR
addResourceToIndex, get, get, getHandle, getHandles, getSupportedModes, init, list, parseLocations, requestAll, reset, setRegistry, versions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_LOCAL_DIR

public static final String PROP_LOCAL_DIR
See Also:
Constant Field Values

PROP_READONLY

public static final String PROP_READONLY
See Also:
Constant Field Values
Constructor Detail

LocalOBR

public LocalOBR()
Method Detail

setReporter

public void setReporter(Reporter reporter)
Description copied from interface: Plugin
Set the current reporter. This is called at init time. This plugin should report all errors and warnings to this reporter.

Specified by:
setReporter in interface Plugin
Overrides:
setReporter in class AbstractBaseOBR

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 OBR
Parameters:
map - attributes and directives for this plugin's clause

initialiseIndexes

protected void initialiseIndexes()
                          throws Exception
Description copied from class: AbstractBaseOBR
Initialize the indexes prior to main initialisation of internal data structures. This implementation does nothing, but subclasses may override if they need to perform such initialisation.

Overrides:
initialiseIndexes in class AbstractBaseOBR
Throws:
Exception

getOBRIndexes

public List<URL> getOBRIndexes()
Specified by:
getOBRIndexes in interface OBRIndexProvider
Overrides:
getOBRIndexes in class OBR

canWrite

public boolean canWrite()
Description copied from interface: RepositoryPlugin
Answer if this repository can be used to store files.

Specified by:
canWrite in interface RepositoryPlugin
Overrides:
canWrite in class AbstractBaseOBR
Returns:
true if writable

put

public File put(Jar jar)
         throws Exception
Description copied from interface: RepositoryPlugin
Put a JAR file in the repository.

Specified by:
put in interface RepositoryPlugin
Overrides:
put in class AbstractBaseOBR
Throws:
Exception

refresh

public boolean refresh()
Specified by:
refresh in interface Refreshable

getRoot

public File getRoot()
Specified by:
getRoot in interface Refreshable


Copyright © 2012 aQute SARL. All Rights Reserved.