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
 org.osgi.framework.Version getVersion()
           
 org.osgi.framework.Bundle install(BundleFramework framework, AriesApplication app)
          Install the bundle represented by this suggestion via the given context
 

Method Detail

install

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

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

getImportPackage

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

Returns:

getExportPackage

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

Returns:

getVersion

org.osgi.framework.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.