org.apache.aries.application.management.spi.repository
Interface BundleRepository.BundleSuggestion

Enclosing interface:
BundleRepository

public static interface BundleRepository.BundleSuggestion

A suggested bundle to use.


Method Summary
 int getCost()
          This method can be queried to discover the cost of using this bundle repository.
 Set<Content> getExportPackage()
          Get the exports of the bundle
 Set<Content> getImportPackage()
          Get the imports of the bundle
 Version getVersion()
           
 Bundle install(BundleFramework framework, AriesApplication app)
          Install the bundle represented by this suggestion via the given context
 

Method Detail

install

Bundle install(BundleFramework framework,
               AriesApplication app)
               throws BundleException
Install the bundle represented by this suggestion via the given context

Parameters:
framework - The context of the framework where the bundle is to be install
app - The AriesApplication being installed
Returns:
the installed bundle
Throws:
BundleException

getImportPackage

Set<Content> getImportPackage()
Get the imports of the bundle

Returns:
the imported packages

getExportPackage

Set<Content> getExportPackage()
Get the exports of the bundle

Returns:
the packages to export

getVersion

Version getVersion()
Returns:
the version of the bundle.

getCost

int getCost()
This method can be queried to discover the cost of using this bundle repository. If two repositories define the same bundle with the same version then the cheaper one will be used.

Returns:
the cost of using this repository.


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