|
||||||||||
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 Resolver
resource
- the resource to addpublic Resource[] getAddedResources()
Resolver
getAddedResources
in interface Resolver
public void add(Requirement requirement)
Resolver
add
in interface Resolver
requirement
- the requirement to addpublic 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
getReason
in interface Resolver
public Reason[] getUnsatisfiedRequirements()
Resolver
getUnsatisfiedRequirements
in interface Resolver
public boolean resolve()
Resolver
resolve
in interface Resolver
true
if the resolution has succeeded else false
public boolean resolve(int flags)
Resolver
resolve
in interface Resolver
flags
- resolution flags
true
if the resolution has succeeded else false
public void deploy(int flags)
deploy
in interface Resolver
public 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 |