ResolverHook hook = beginHook(constraint.getBundle().getContainingState(), Arrays.asList(new BundleRevision[] {constraint.getBundle()}));
try {
return isBundleConstraintResolvable(constraint, namespace, hook);
} finally {
if (hook != null)
hook.end();
}
}
private boolean isBundleConstraintResolvable(VersionConstraint constraint, String namespace, ResolverHook hook) {
BundleDescription[] availableBundles = constraint.getBundle().getContainingState().getBundles(constraint.getName());