org.osgi.impl.bundle.obr.resource
Class RepositoryImpl

java.lang.Object
  extended by org.osgi.impl.bundle.obr.resource.RepositoryImpl
All Implemented Interfaces:
org.osgi.service.obr.Repository

public class RepositoryImpl
extends java.lang.Object
implements org.osgi.service.obr.Repository

Implements the basic repository. A repository holds a set of resources.

Version:
$Revision: 44 $

Constructor Summary
RepositoryImpl(java.net.URL url)
          Each repository is identified by a single URL.
 
Method Summary
 long getLastModified()
           
 java.lang.String getName()
           
 int getRanking()
           
 org.osgi.service.obr.Resource getResource(java.lang.String id)
           
 java.util.Collection getResourceList()
           
 org.osgi.service.obr.Resource[] getResources()
           
 java.net.URL getURL()
           
 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

RepositoryImpl

public RepositoryImpl(java.net.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 -
Method Detail

refresh

public boolean refresh()
Refresh the repository from the URL.

Throws:
java.lang.Exception

getURL

public java.net.URL getURL()
Specified by:
getURL in interface org.osgi.service.obr.Repository

getResourceList

public java.util.Collection getResourceList()
Returns:

getResources

public org.osgi.service.obr.Resource[] getResources()
Specified by:
getResources in interface org.osgi.service.obr.Repository

getName

public java.lang.String getName()
Specified by:
getName in interface org.osgi.service.obr.Repository

getResource

public org.osgi.service.obr.Resource getResource(java.lang.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 © 2006-2010 Apache Software Foundation. All Rights Reserved.