|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.osgi.impl.bundle.obr.resource.RepositoryImpl
public class RepositoryImpl
Implements the basic repository. A repository holds a set of resources.
Constructor Summary | |
---|---|
RepositoryImpl(URL url)
Each repository is identified by a single URL. |
Method Summary | |
---|---|
long |
getLastModified()
|
String |
getName()
Return the name of this reposotory. |
int |
getRanking()
|
Resource |
getResource(String id)
|
Collection |
getResourceList()
|
Resource[] |
getResources()
Return the resources for this repository. |
URL |
getURL()
Return the associated URL for the repository. |
boolean |
refresh()
Refresh the repository from the URL. |
void |
setRanking(int ranking)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryImpl(URL url)
url
- Method Detail |
---|
public boolean refresh()
Exception
public URL getURL()
Repository
getURL
in interface Repository
public Collection getResourceList()
public Resource[] getResources()
Repository
getResources
in interface Repository
public String getName()
Repository
getName
in interface Repository
public Resource getResource(String id)
public long getLastModified()
getLastModified
in interface Repository
public int getRanking()
public void setRanking(int ranking)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |