DO_NOT_PREFER_LOCAL, NO_LOCAL_RESOURCES, NO_OPTIONAL_RESOURCES, NO_SYSTEM_BUNDLE, START
Constructor | Description |
---|---|
ResolverImpl(org.osgi.framework.BundleContext context,
Repository[] repositories,
org.apache.felix.utils.log.Logger logger) |
Modifier and Type | Method | 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 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)
Resolver
public Resource[] getAddedResources()
Resolver
getAddedResources
in interface Resolver
public void add(Requirement requirement)
Resolver
public Requirement[] getAddedRequirements()
Resolver
getAddedRequirements
in interface Resolver
public void addGlobalCapability(Capability capability)
Resolver
addGlobalCapability
in interface Resolver
capability
- the new global capabilitypublic Capability[] getGlobalCapabilities()
Resolver
getGlobalCapabilities
in interface Resolver
public Resource[] getRequiredResources()
Resolver
getRequiredResources
in interface Resolver
public Resource[] getOptionalResources()
Resolver
getOptionalResources
in interface Resolver
public Reason[] getReason(Resource resource)
Resolver
public Reason[] getUnsatisfiedRequirements()
Resolver
getUnsatisfiedRequirements
in interface Resolver
protected LocalResource[] getLocalResources()
public boolean resolve()
Resolver
public boolean resolve(int flags)
Resolver
public static String getBundleName(org.osgi.framework.Bundle bundle)
Copyright © 2018. All rights reserved.