DO_NOT_PREFER_LOCAL, NO_LOCAL_RESOURCES, NO_OPTIONAL_RESOURCES, NO_SYSTEM_BUNDLE, START| Constructor and Description |
|---|
ResolverImpl(org.osgi.framework.BundleContext context,
Repository[] repositories,
org.apache.felix.utils.log.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Requirement requirement)
Add the following requirement to the resolution
The current resolution will be lost after adding a requirement.
|
void |
add(Resource resource)
Add the following resource to the resolution.
|
void |
addGlobalCapability(Capability capability)
Add a global capability.
|
void |
deploy(int flags) |
Requirement[] |
getAddedRequirements()
Returns the list of requirements that have been added to the resolution
|
Resource[] |
getAddedResources()
Returns the list of resources that have been added to the resolution
|
static java.lang.String |
getBundleName(org.osgi.framework.Bundle bundle) |
Capability[] |
getGlobalCapabilities()
Returns the list of global capabilities
|
protected LocalResource[] |
getLocalResources() |
Resource[] |
getOptionalResources()
List of optional resources that may be installed
|
Reason[] |
getReason(Resource resource)
List of reasons why a resource has been included either as a mandatory or
optional resource during the resolution.
|
Resource[] |
getRequiredResources()
List of mandatory resources that need to be installed
|
Reason[] |
getUnsatisfiedRequirements()
List of requirements that could not be satisfied during the resolution
|
boolean |
resolve()
Start the resolution process and return whether the constraints have
been successfully met or not.
|
boolean |
resolve(int flags)
Start the resolution process with the following flags.
|
public ResolverImpl(org.osgi.framework.BundleContext context,
Repository[] repositories,
org.apache.felix.utils.log.Logger logger)
public void add(Resource resource)
Resolverpublic Resource[] getAddedResources()
ResolvergetAddedResources in interface Resolverpublic void add(Requirement requirement)
Resolverpublic Requirement[] getAddedRequirements()
ResolvergetAddedRequirements in interface Resolverpublic void addGlobalCapability(Capability capability)
ResolveraddGlobalCapability in interface Resolvercapability - the new global capabilitypublic Capability[] getGlobalCapabilities()
ResolvergetGlobalCapabilities in interface Resolverpublic Resource[] getRequiredResources()
ResolvergetRequiredResources in interface Resolverpublic Resource[] getOptionalResources()
ResolvergetOptionalResources in interface Resolverpublic Reason[] getReason(Resource resource)
Resolverpublic Reason[] getUnsatisfiedRequirements()
ResolvergetUnsatisfiedRequirements in interface Resolverprotected LocalResource[] getLocalResources()
public boolean resolve()
Resolverpublic boolean resolve(int flags)
Resolverpublic static java.lang.String getBundleName(org.osgi.framework.Bundle bundle)
Copyright © 2006-2017 The Apache Software Foundation. All Rights Reserved.