in atomos/src/main/java/org/apache/felix/atomos/impl/base/AtomosBase.java [606:632]
public void frameworkEvent(FrameworkEvent event)
{
if (REPORT_RESOLUTION_ERRORS && event.getType() == FrameworkEvent.ERROR)
{
if (event.getThrowable() instanceof BundleException
&& ((BundleException) event.getThrowable()).getType() == BundleException.RESOLVE_ERROR)
{
Bundle b = event.getBundle();
BundleRevision rev = b == null ? null : b.adapt(BundleRevision.class);
if (rev != null)
{
rev.getCapabilities(IdentityNamespace.IDENTITY_NAMESPACE).forEach(
i -> {
@SuppressWarnings("unchecked")
List<String> tags = (List<String>) i.getAttributes().get(
IdentityNamespace.CAPABILITY_TAGS_ATTRIBUTE);
if (tags != null
&& tags.contains(ConnectContent.TAG_OSGI_CONNECT))
{
System.out.println("Unable to resolve connected bundle: "
+ event.getThrowable().getMessage());
}
});
}
}
}
}