org.apache.aries.application.management.spi.repository
Interface BundleRepositoryManager


public interface BundleRepositoryManager


Method Summary
 Collection<BundleRepository> getAllBundleRepositories()
          Gets all known bundle repositories
 Collection<BundleRepository> getBundleRepositoryCollection(String applicationName, String applicationVersion)
          Gets a collection of all bundle repositories which can provide bundles to the given application scope.
 Map<DeploymentContent,BundleRepository.BundleSuggestion> getBundleSuggestions(Collection<BundleRepository> brs, Collection<DeploymentContent> content)
          Get a collection of bundle installation suggestions from the collection of given repositories
 Map<DeploymentContent,BundleRepository.BundleSuggestion> getBundleSuggestions(Collection<DeploymentContent> content)
          Get a collection of bundle installation suggestions from all known repositories
 Map<DeploymentContent,BundleRepository.BundleSuggestion> getBundleSuggestions(String applicationName, String applicationVersion, Collection<DeploymentContent> content)
          Get a collection of bundle installation suggestions from repositories suitable for the given application scope
 

Method Detail

getBundleRepositoryCollection

Collection<BundleRepository> getBundleRepositoryCollection(String applicationName,
                                                           String applicationVersion)
Gets a collection of all bundle repositories which can provide bundles to the given application scope.

Parameters:
applicationName -
applicationVersion -
Returns:
the collection of bundle repositories for an app.

getAllBundleRepositories

Collection<BundleRepository> getAllBundleRepositories()
Gets all known bundle repositories

Returns:
all known bundle repositories.

getBundleSuggestions

Map<DeploymentContent,BundleRepository.BundleSuggestion> getBundleSuggestions(String applicationName,
                                                                              String applicationVersion,
                                                                              Collection<DeploymentContent> content)
                                                                              throws ContextException
Get a collection of bundle installation suggestions from repositories suitable for the given application scope

Parameters:
applicationName -
applicationVersion -
content -
Returns:
the bundle suggestions
Throws:
ContextException

getBundleSuggestions

Map<DeploymentContent,BundleRepository.BundleSuggestion> getBundleSuggestions(Collection<DeploymentContent> content)
                                                                              throws ContextException
Get a collection of bundle installation suggestions from all known repositories

Parameters:
content -
Returns:
the bundle suggestions
Throws:
ContextException

getBundleSuggestions

Map<DeploymentContent,BundleRepository.BundleSuggestion> getBundleSuggestions(Collection<BundleRepository> brs,
                                                                              Collection<DeploymentContent> content)
                                                                              throws ContextException
Get a collection of bundle installation suggestions from the collection of given repositories

Parameters:
brs -
content -
Returns:
the bundle suggestions
Throws:
ContextException


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.