private void init(Parameters augments) throws Exception { MultiMap<Requirement, Augment> operations = new MultiMap<>(); for (Map.Entry<String, Attrs> e : augments.entrySet()) { String bsn = e.getKey(); Attrs attrs = e.getValue(); createAugmentOperation(operations, bsn, attrs); } Map<Requirement, Collection<Capability>> allBundles = repository.findProviders(operations.keySet()); for (Entry<Requirement, List<Augment>> e : operations.entrySet()) { executeAugmentOperations(allBundles, e.getKey(), e.getValue()); } }
private void init(Parameters augments) throws Exception { MultiMap<Requirement, Augment> operations = new MultiMap<>(); for (Map.Entry<String, Attrs> e : augments.entrySet()) { String bsn = e.getKey(); Attrs attrs = e.getValue(); createAugmentOperation(operations, bsn, attrs); } Map<Requirement, Collection<Capability>> allBundles = repository.findProviders(operations.keySet()); for (Entry<Requirement, List<Augment>> e : operations.entrySet()) { executeAugmentOperations(allBundles, e.getKey(), e.getValue()); } }