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


public interface BundleRepository


Nested Class Summary
static interface BundleRepository.BundleSuggestion
          A suggested bundle to use.
 
Field Summary
static String GLOBAL_SCOPE
           
static String REPOSITORY_SCOPE
          Service property denoting the scope of the bundle repository.
 
Method Summary
 int getCost()
          This method can be queried to discover the cost of using this bundle repository.
 BundleRepository.BundleSuggestion suggestBundleToUse(DeploymentContent content)
          This method attempts to find a bundle in the repository that matches the specified DeploymentContent specification.
 

Field Detail

REPOSITORY_SCOPE

static final String REPOSITORY_SCOPE
Service property denoting the scope of the bundle repository. This can

See Also:
Constant Field Values

GLOBAL_SCOPE

static final String GLOBAL_SCOPE
See Also:
Constant Field Values
Method Detail

suggestBundleToUse

BundleRepository.BundleSuggestion suggestBundleToUse(DeploymentContent content)
This method attempts to find a bundle in the repository that matches the specified DeploymentContent specification. If none can be found then null must be returned.

Parameters:
content - the content used to locate a bundle.
Returns:
the bundle suggestion, or null.

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.