aQute.lib.deployer.obr
Class LocalOBR
java.lang.Object
aQute.lib.deployer.obr.AbstractBaseOBR
aQute.lib.deployer.obr.OBR
aQute.lib.deployer.obr.LocalOBR
- All Implemented Interfaces:
- OBRIndexProvider, Plugin, Refreshable, RegistryPlugin, RemoteRepositoryPlugin, RepositoryPlugin
public class LocalOBR
- extends OBR
- implements Refreshable
|
Method Summary |
boolean |
canWrite()
Answer if this repository can be used to store files. |
java.util.List<java.net.URL> |
getOBRIndexes()
|
java.io.File |
getRoot()
|
protected void |
initialiseIndexes()
Initialize the indexes prior to main initialisation of internal
data structures. |
java.io.File |
put(Jar jar)
Put a JAR file in the repository. |
boolean |
refresh()
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> map)
Give the plugin the remaining properties. |
void |
setReporter(Reporter reporter)
Set the current reporter. |
| 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 |
PROP_LOCAL_DIR
public static final java.lang.String PROP_LOCAL_DIR
- See Also:
- Constant Field Values
PROP_READONLY
public static final java.lang.String PROP_READONLY
- See Also:
- Constant Field Values
LocalOBR
public LocalOBR()
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(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 OBR
- Parameters:
map - attributes and directives for this plugin's clause
initialiseIndexes
protected void initialiseIndexes()
throws java.lang.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:
java.lang.Exception
getOBRIndexes
public java.util.List<java.net.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 java.io.File put(Jar jar)
throws java.lang.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:
java.lang.Exception
refresh
public boolean refresh()
- Specified by:
refresh in interface Refreshable
getRoot
public java.io.File getRoot()
- Specified by:
getRoot in interface Refreshable