org.osgi.impl.bundle.obr.resource

Class RepositoryImpl

public class RepositoryImpl extends Object implements 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.
Method Summary
longgetLastModified()
StringgetName()
intgetRanking()
ResourcegetResource(String id)
CollectiongetResourceList()
Resource[]getResources()
URLgetURL()
booleanrefresh()
Refresh the repository from the URL.
voidsetRanking(int ranking)

Constructor Detail

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

Method Detail

getLastModified

public long getLastModified()

getName

public String getName()

getRanking

public int getRanking()

getResource

public Resource getResource(String id)

getResourceList

public Collection getResourceList()

Returns:

getResources

public Resource[] getResources()

getURL

public URL getURL()

refresh

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

Throws: Exception

setRanking

public void setRanking(int ranking)
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.