com.monad.homerun.repo
Interface Repository


public interface Repository

Repository provides access to a package (bundle) repository and its resources (i.e. packages) NB: this interface is closely modeled on a subset of OSGi OBR RFC-0112 interface of the same name. Should be replaced (or sub-classed) when an implementation is available from OSGi


Method Summary
 Resource[] discoverResources(java.lang.String category)
          Find a set of resources given a filter
 java.lang.String[] getCategories(boolean visible)
          Returns list of category names in repository
 long getLastModified()
          Returns time repository last modified
 java.util.Map<java.lang.String,java.lang.String> getManifestProperties(java.net.URL pkgUrl, java.util.Map<java.lang.String,java.lang.String> props)
          Get manifest properties
 java.lang.String getName()
          Returns name of repository
 PkgTag[] getPackageTags(java.lang.String category)
          Returns an array of package descriptions in given category
 Resource[] getResources()
          Obtain the list of Resources in the repostiory
 java.net.URL getURL()
          Returns the URL associated with the repository
 

Method Detail

getLastModified

long getLastModified()
Returns time repository last modified

Returns:
modified datestamp

getName

java.lang.String getName()
Returns name of repository

Returns:
name repository name

getResources

Resource[] getResources()
Obtain the list of Resources in the repostiory

Returns:
resource list

getURL

java.net.URL getURL()
Returns the URL associated with the repository

Returns:
url repository URL

getCategories

java.lang.String[] getCategories(boolean visible)
Returns list of category names in repository


getPackageTags

PkgTag[] getPackageTags(java.lang.String category)
Returns an array of package descriptions in given category

Parameters:
category - the package category
Returns:
tags the array of package tags

discoverResources

Resource[] discoverResources(java.lang.String category)
Find a set of resources given a filter

Parameters:
category -
Returns:

getManifestProperties

java.util.Map<java.lang.String,java.lang.String> getManifestProperties(java.net.URL pkgUrl,
                                                                       java.util.Map<java.lang.String,java.lang.String> props)
Get manifest properties

Parameters:
pkgUrl -
props -
Returns:


Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.