My first shot in the dark is like this:
...
Collection<org.osgi.resource.Capability> capabilities =
bundle.adapt(BundleRevision.class).getCapabilities(null);
for(org.osgi.resource.Capability capability : capabilities) {
CapabilityImpl cap = new
CapabilityImpl(capability.getNamespace());
Map<String, Object>capmap = capability.getAttributes();
for(Map.Entry<String, Object> entry : capmap.entrySet()) {
Object value = entry.getValue();
String key = entry.getKey();
cap.addProperty(key, value.toString());
}
resolver.addGlobalCapability((org.apache.felix.bundlerepository.Capability)cap);
...
...but something is wrong.
My basic question is: It is possible to map org.osgi.resource.Capability to
org.apache.felix.bundlerepository.Capability? What I have to do if it is
possible?
Thx
Roland
--
View this message in context:
http://apache-felix.18485.x6.nabble.com/Unresolved-dependency-system-bundle-tp5004643p5004655.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]