return new BundleSelectorImpl(bundleContext).selectBundles(ids, defaultAllBundles);
}
@Override
public BundleInfo getInfo(Bundle bundle) {
BundleState combinedState = BundleState.Unknown;
for (BundleStateService stateService : this.stateServices) {
BundleState extState = stateService.getState(bundle);
if (extState != BundleState.Unknown) {
combinedState = extState;
}
}
return new BundleInfoImpl(bundle, combinedState);