|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectaQute.bnd.resource.repository.ResourceRepositoryImpl
public class ResourceRepositoryImpl
This class implements a hidden repository. This repo is kept in a text file that is under scm control. Files are fetched on demand. The idea is that bnd will bootstrap from this repo and downloads plugins. These plugins then provide faces on this hidden repository.
| Nested Class Summary | |
|---|---|
static class |
ResourceRepositoryImpl.FileLayout
Class maintains the info stored in the text file in the cnf directory that holds our contents. |
| Nested classes/interfaces inherited from interface aQute.bnd.service.repository.ResourceRepository |
|---|
ResourceRepository.Listener, ResourceRepository.ResourceRepositoryEvent, ResourceRepository.TYPE |
| Field Summary | |
|---|---|
protected static RepositoryPlugin.DownloadListener[] |
EMPTY_LISTENER
|
| Fields inherited from interface aQute.bnd.service.repository.ResourceRepository |
|---|
FILENAME |
| Constructor Summary | |
|---|---|
ResourceRepositoryImpl()
|
|
| Method Summary | |
|---|---|
boolean |
add(String repoId,
SearchableRepository.ResourceDescriptor rd)
Add a resource descriptor to the index. |
void |
addListener(ResourceRepository.Listener rrl)
Add a new event listener |
boolean |
delete(String repoId,
byte[] id)
|
boolean |
deleteCache(byte[] id)
Delete a cache entry |
List<ResourceDescriptorImpl> |
filter(String repoId,
String filter)
List the resources. |
SortedSet<SearchableRepository.ResourceDescriptor> |
find(String repoId,
String bsn,
VersionRange range)
|
File |
getCacheDir(String name)
|
File |
getResource(byte[] rd,
RepositoryPlugin.DownloadListener... blockers)
Get the file belonging to a Resource Descriptor |
ResourceDescriptorImpl |
getResourceDescriptor(byte[] rd)
List the resources. |
void |
removeListener(ResourceRepository.Listener rrl)
Remove an event listener |
void |
setCache(File cache)
|
void |
setExecutor(Executor executor)
|
void |
setIndexFile(File file)
|
void |
setReporter(Reporter processor)
|
void |
setURLConnector(URLConnectionHandler connector)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final RepositoryPlugin.DownloadListener[] EMPTY_LISTENER
| Constructor Detail |
|---|
public ResourceRepositoryImpl()
| Method Detail |
|---|
public List<ResourceDescriptorImpl> filter(String repoId,
String filter)
throws Exception
filter in interface ResourceRepositoryfilter - An OSGi filter matched against the SearchableRepository.ResourceDescriptor
Exception
public boolean delete(String repoId,
byte[] id)
throws Exception
delete in interface ResourceRepositoryException
public boolean deleteCache(byte[] id)
throws Exception
deleteCache in interface ResourceRepositoryException
public boolean add(String repoId,
SearchableRepository.ResourceDescriptor rd)
throws Exception
add in interface ResourceRepositoryException
public File getResource(byte[] rd,
RepositoryPlugin.DownloadListener... blockers)
throws Exception
getResource in interface ResourceRepositoryExceptionpublic void addListener(ResourceRepository.Listener rrl)
addListener in interface ResourceRepositorypublic void removeListener(ResourceRepository.Listener rrl)
public ResourceDescriptorImpl getResourceDescriptor(byte[] rd)
throws Exception
getResourceDescriptor in interface ResourceRepositoryExceptionpublic void setReporter(Reporter processor)
public void setIndexFile(File file)
public void setCache(File cache)
public void setExecutor(Executor executor)
throws Exception
Exception
public void setURLConnector(URLConnectionHandler connector)
throws Exception
Exception
public SortedSet<SearchableRepository.ResourceDescriptor> find(String repoId,
String bsn,
VersionRange range)
throws Exception
find in interface ResourceRepositoryExceptionpublic File getCacheDir(String name)
getCacheDir in interface ResourceRepositorypublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||