|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.bundlerepository.impl.ResolverImpl
public class ResolverImpl
| Field Summary |
|---|
| Fields inherited from interface org.apache.felix.bundlerepository.Resolver |
|---|
DO_NOT_PREFER_LOCAL, NO_LOCAL_RESOURCES, NO_OPTIONAL_RESOURCES, NO_SYSTEM_BUNDLE, START |
| Constructor Summary | |
|---|---|
ResolverImpl(org.osgi.framework.BundleContext context,
Repository[] repositories,
org.apache.felix.utils.log.Logger logger)
|
|
| Method Summary | |
|---|---|
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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResolverImpl(org.osgi.framework.BundleContext context,
Repository[] repositories,
org.apache.felix.utils.log.Logger logger)
| Method Detail |
|---|
public void add(Resource resource)
Resolver
add in interface Resolverresource - the resource to addpublic Resource[] getAddedResources()
Resolver
getAddedResources in interface Resolverpublic void add(Requirement requirement)
Resolver
add in interface Resolverrequirement - the requirement to addpublic Requirement[] getAddedRequirements()
Resolver
getAddedRequirements in interface Resolverpublic void addGlobalCapability(Capability capability)
Resolver
addGlobalCapability in interface Resolvercapability - the new global capabilitypublic Capability[] getGlobalCapabilities()
Resolver
getGlobalCapabilities in interface Resolverpublic Resource[] getRequiredResources()
Resolver
getRequiredResources in interface Resolverpublic Resource[] getOptionalResources()
Resolver
getOptionalResources in interface Resolverpublic Reason[] getReason(Resource resource)
Resolver
getReason in interface Resolverpublic Reason[] getUnsatisfiedRequirements()
Resolver
getUnsatisfiedRequirements in interface Resolverpublic boolean resolve()
Resolver
resolve in interface Resolvertrue if the resolution has succeeded else falsepublic boolean resolve(int flags)
Resolver
resolve in interface Resolverflags - resolution flags
true if the resolution has succeeded else falsepublic void deploy(int flags)
deploy in interface Resolverpublic static java.lang.String getBundleName(org.osgi.framework.Bundle bundle)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||