@Override public boolean include(Features repository) { return !repository.isBlacklisted(); }
@Override public boolean include(Features repository) { return !repository.isBlacklisted(); }
public DummyDeployCallback(Bundle sysBundle, Collection<Features> repositories) { systemBundle = sysBundle; dstate = new Deployer.DeploymentState(); dstate.bundles = new HashMap<>(); dstate.bundlesPerRegion = new HashMap<>(); dstate.filtersPerRegion = new HashMap<>(); dstate.state = new State(); MapUtils.addToMapSet(dstate.bundlesPerRegion, FeaturesService.ROOT_REGION, 0l); dstate.bundles.put(0l, systemBundle); Collection<org.apache.karaf.features.Feature> features = new LinkedList<>(); for (Features repo : repositories) { if (repo.isBlacklisted()) { continue; } for (Feature f : repo.getFeature()) { if (!f.isBlacklisted()) { features.add(f); } } } dstate.partitionFeatures(features); }
public DummyDeployCallback(Bundle sysBundle, Collection<Features> repositories) { systemBundle = sysBundle; dstate = new Deployer.DeploymentState(); dstate.bundles = new HashMap<>(); dstate.bundlesPerRegion = new HashMap<>(); dstate.filtersPerRegion = new HashMap<>(); dstate.state = new State(); MapUtils.addToMapSet(dstate.bundlesPerRegion, FeaturesService.ROOT_REGION, 0l); dstate.bundles.put(0l, systemBundle); Collection<org.apache.karaf.features.Feature> features = new LinkedList<>(); for (Features repo : repositories) { if (repo.isBlacklisted()) { continue; } for (Feature f : repo.getFeature()) { if (!f.isBlacklisted()) { features.add(f); } } } dstate.partitionFeatures(features); }
if (repo.isBlacklisted()) { continue;
if (full || !features.isBlacklisted()) { features.getFeature().forEach(feature -> { if (full || !feature.isBlacklisted()) {
if (repo.isBlacklisted()) { continue;
boolean allBlacklisted = features.isBlacklisted(); feature.setBlacklisted(allBlacklisted || isFeatureBlacklisted(feature));