Class ResolverImpl
java.lang.Object
org.apache.felix.bundlerepository.impl.ResolverImpl
- All Implemented Interfaces:
Resolver
-
Field Summary
Fields inherited from interface Resolver
DO_NOT_PREFER_LOCAL, NO_LOCAL_RESOURCES, NO_OPTIONAL_RESOURCES, NO_SYSTEM_BUNDLE, START -
Constructor Summary
ConstructorsConstructorDescriptionResolverImpl(org.osgi.framework.BundleContext context, Repository[] repositories, org.apache.felix.utils.log.Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Requirement requirement) Add the following requirement to the resolution The current resolution will be lost after adding a requirement.voidAdd the following resource to the resolution.voidaddGlobalCapability(Capability capability) Add a global capability.voiddeploy(int flags) Returns the list of requirements that have been added to the resolutionResource[]Returns the list of resources that have been added to the resolutionstatic StringgetBundleName(org.osgi.framework.Bundle bundle) Returns the list of global capabilitiesprotected LocalResource[]Resource[]List of optional resources that may be installedReason[]List of reasons why a resource has been included either as a mandatory or optional resource during the resolution.Resource[]List of mandatory resources that need to be installedReason[]List of requirements that could not be satisfied during the resolutionbooleanresolve()Start the resolution process and return whether the constraints have been successfully met or not.booleanresolve(int flags) Start the resolution process with the following flags.
-
Constructor Details
-
ResolverImpl
public ResolverImpl(org.osgi.framework.BundleContext context, Repository[] repositories, org.apache.felix.utils.log.Logger logger)
-
-
Method Details
-
add
Description copied from interface:ResolverAdd the following resource to the resolution. The resource will be part of the output and all its requirements will be satisfied. It has the same effect has adding a requirement that will match this resource by symbolicname and version. The current resolution will be lost after adding a resource. -
getAddedResources
Description copied from interface:ResolverReturns the list of resources that have been added to the resolution- Specified by:
getAddedResourcesin interfaceResolver- Returns:
-
add
Description copied from interface:ResolverAdd the following requirement to the resolution The current resolution will be lost after adding a requirement. -
getAddedRequirements
Description copied from interface:ResolverReturns the list of requirements that have been added to the resolution- Specified by:
getAddedRequirementsin interfaceResolver- Returns:
-
addGlobalCapability
Description copied from interface:ResolverAdd a global capability. A global capability is one capability provided by the environment but not reflected in local resources.- Specified by:
addGlobalCapabilityin interfaceResolver- Parameters:
capability- the new global capability
-
getGlobalCapabilities
Description copied from interface:ResolverReturns the list of global capabilities- Specified by:
getGlobalCapabilitiesin interfaceResolver- Returns:
-
getRequiredResources
Description copied from interface:ResolverList of mandatory resources that need to be installed- Specified by:
getRequiredResourcesin interfaceResolver- Returns:
-
getOptionalResources
Description copied from interface:ResolverList of optional resources that may be installed- Specified by:
getOptionalResourcesin interfaceResolver- Returns:
-
getReason
Description copied from interface:ResolverList of reasons why a resource has been included either as a mandatory or optional resource during the resolution. -
getUnsatisfiedRequirements
Description copied from interface:ResolverList of requirements that could not be satisfied during the resolution- Specified by:
getUnsatisfiedRequirementsin interfaceResolver- Returns:
-
getLocalResources
-
resolve
public boolean resolve()Description copied from interface:ResolverStart the resolution process and return whether the constraints have been successfully met or not. The resolution can be interrupted by a call to Thread.interrupt() at any time. The result will be to stop the resolver and throw an InterruptedException. -
resolve
-
deploy
-
getBundleName
-