org.osgi.impl.bundle.obr.resource
Class RepositoryImpl
java.lang.Object
org.osgi.impl.bundle.obr.resource.RepositoryImpl
- All Implemented Interfaces:
- org.osgi.service.obr.Repository
public class RepositoryImpl
- extends Object
- implements org.osgi.service.obr.Repository
Implements the basic repository. A repository holds a set of resources.
- Version:
- $Revision: 44 $
Constructor Summary |
RepositoryImpl(URL url)
Each repository is identified by a single URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositoryImpl
public RepositoryImpl(URL url)
- Each repository is identified by a single URL.
A repository can hold referrals to other repositories. These referred
repositories are included at the point of referall.
- Parameters:
url
-
refresh
public boolean refresh()
- Refresh the repository from the URL.
- Throws:
Exception
getURL
public URL getURL()
- Specified by:
getURL
in interface org.osgi.service.obr.Repository
getResourceList
public Collection getResourceList()
- Returns:
getResources
public org.osgi.service.obr.Resource[] getResources()
- Specified by:
getResources
in interface org.osgi.service.obr.Repository
getName
public String getName()
- Specified by:
getName
in interface org.osgi.service.obr.Repository
getResource
public org.osgi.service.obr.Resource getResource(String id)
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interface org.osgi.service.obr.Repository
getRanking
public int getRanking()
setRanking
public void setRanking(int ranking)
Copyright © 2011 Apache Software Foundation. All Rights Reserved.