public class LocalOBR extends OBR implements Refreshable
RepositoryPlugin.Strategy
Modifier and Type | Field and Description |
---|---|
static String |
PROP_LOCAL_DIR |
static String |
PROP_READONLY |
cacheDir, locations, PROP_CACHE, PROP_LOCATION, PROP_LOCATIONS
name, PROP_NAME, PROP_RESOLUTION_MODE, PROP_RESOLUTION_MODE_ANY, registry, reporter, REPOSITORY_FILE_NAME, supportedModes
Constructor and Description |
---|
LocalOBR() |
Modifier and Type | Method and Description |
---|---|
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.
|
getCacheDirectory, getName, setCacheDirectory, setLocations
addResourceToIndex, get, get, getHandle, getHandles, getSupportedModes, init, list, parseLocations, requestAll, reset, setRegistry, versions
public static final String PROP_LOCAL_DIR
public static final String PROP_READONLY
public void setReporter(Reporter reporter)
Plugin
setReporter
in interface Plugin
setReporter
in class AbstractBaseOBR
public void setProperties(Map<String,String> map)
Plugin
setProperties
in interface Plugin
setProperties
in class OBR
map
- attributes and directives for this plugin's clauseprotected void initialiseIndexes() throws Exception
AbstractBaseOBR
initialiseIndexes
in class AbstractBaseOBR
Exception
public List<URL> getOBRIndexes()
getOBRIndexes
in interface OBRIndexProvider
getOBRIndexes
in class OBR
public boolean canWrite()
RepositoryPlugin
canWrite
in interface RepositoryPlugin
canWrite
in class AbstractBaseOBR
public File put(Jar jar) throws Exception
RepositoryPlugin
put
in interface RepositoryPlugin
put
in class AbstractBaseOBR
Exception
public boolean refresh()
refresh
in interface Refreshable
public File getRoot()
getRoot
in interface Refreshable
Copyright © 2018 aQute SARL. All rights reserved.