org.apache.aries.application.management.spi.repository
Interface BundleRepository
public interface BundleRepository
REPOSITORY_SCOPE
static final String REPOSITORY_SCOPE
- Service property denoting the scope of the bundle repository. This can
- global
- <app symbolic name>_<app version>
- See Also:
- Constant Field Values
GLOBAL_SCOPE
static final String GLOBAL_SCOPE
- See Also:
- Constant Field Values
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.