public interface Resolver
Modifier and Type | Field and Description |
---|---|
static int |
DO_NOT_PREFER_LOCAL |
static int |
NO_LOCAL_RESOURCES |
static int |
NO_OPTIONAL_RESOURCES |
static int |
NO_SYSTEM_BUNDLE |
static int |
START |
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
|
Capability[] |
getGlobalCapabilities()
Returns the list of global capabilities
|
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.
|
static final int NO_OPTIONAL_RESOURCES
static final int NO_LOCAL_RESOURCES
static final int NO_SYSTEM_BUNDLE
static final int DO_NOT_PREFER_LOCAL
static final int START
void add(Resource resource)
resource
- the resource to addResource[] getAddedResources()
void add(Requirement requirement)
requirement
- the requirement to addRequirement[] getAddedRequirements()
void addGlobalCapability(Capability capability)
capability
- the new global capabilityCapability[] getGlobalCapabilities()
boolean resolve() throws InterruptedResolutionException
true
if the resolution has succeeded else false
InterruptedResolutionException
- if the resolution has been interruptedboolean resolve(int flags) throws InterruptedResolutionException
flags
- resolution flagstrue
if the resolution has succeeded else false
InterruptedResolutionException
- if the resolution has been interruptedResource[] getRequiredResources()
Resource[] getOptionalResources()
Reason[] getReason(Resource resource)
resource
- Reason[] getUnsatisfiedRequirements()
void deploy(int flags)
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.