/** * Removes a module from the internal data structures if it wasn't selected * as a fragment or a singleton. This process may cause other modules to * become unresolved if they depended on the module's capabilities and there * is no other candidate. * * @param resource the module to remove. * @throws ResolutionException if removing the module caused the resolve to * fail. */ private void removeResource(Resource resource, ResolutionException ex) throws ResolutionException { // Add removal reason to result cache. m_populateResultCache.put(resource, ex); // Remove from dependents. Set<Resource> unresolvedResources = new HashSet<Resource>(); remove(resource, unresolvedResources); // Remove dependents that failed as a result of removing revision. while (!unresolvedResources.isEmpty()) { Iterator<Resource> it = unresolvedResources.iterator(); resource = it.next(); it.remove(); remove(resource, unresolvedResources); } }
/** * Removes a module from the internal data structures if it wasn't selected * as a fragment or a singleton. This process may cause other modules to * become unresolved if they depended on the module's capabilities and there * is no other candidate. * * @param revision the module to remove. * @throws ResolveException if removing the module caused the resolve to * fail. */ private void removeResource(Resource resource, ResolutionException ex) throws ResolutionException { // Add removal reason to result cache. m_populateResultCache.put(resource, ex); // Remove from dependents. Set<Resource> unresolvedResources = new HashSet<Resource>(); remove(resource, unresolvedResources); // Remove dependents that failed as a result of removing revision. while (!unresolvedResources.isEmpty()) { Iterator<Resource> it = unresolvedResources.iterator(); resource = it.next(); it.remove(); remove(resource, unresolvedResources); } }
/** * Removes a module from the internal data structures if it wasn't selected * as a fragment or a singleton. This process may cause other modules to * become unresolved if they depended on the module's capabilities and there * is no other candidate. * * @param resource the module to remove. * @param ex the resolution error */ private void removeResource(Resource resource, ResolutionError ex) { // Add removal reason to result cache. PopulateResult result = m_populateResultCache.get(resource); result.success = false; result.error = ex; // Remove from dependents. Set<Resource> unresolvedResources = new HashSet<Resource>(); remove(resource, unresolvedResources); // Remove dependents that failed as a result of removing revision. while (!unresolvedResources.isEmpty()) { Iterator<Resource> it = unresolvedResources.iterator(); resource = it.next(); it.remove(); remove(resource, unresolvedResources); } }
/** * Removes the specified module from the internal data structures, which * involves removing its requirements and its capabilities. This may cause * other modules to become unresolved as a result. * * @param resource the module to remove. * @param unresolvedResources a list to containing any additional modules * that that became unresolved as a result of removing this module and will * also need to be removed. */ private void remove(Resource resource, Set<Resource> unresolvedResources) { for (Requirement r : resource.getRequirements(null)) { remove(r); } for (Capability c : resource.getCapabilities(null)) { remove(c, unresolvedResources); } }
/** * Removes a module from the internal data structures if it wasn't selected * as a fragment or a singleton. This process may cause other modules to * become unresolved if they depended on the module's capabilities and there * is no other candidate. * * @param resource the module to remove. * @param ex the resolution error */ private void removeResource(Resource resource, ResolutionError ex) { // Add removal reason to result cache. PopulateResult result = m_populateResultCache.get(resource); result.success = false; result.error = ex; // Remove from dependents. Set<Resource> unresolvedResources = new HashSet<Resource>(); remove(resource, unresolvedResources); // Remove dependents that failed as a result of removing revision. while (!unresolvedResources.isEmpty()) { Iterator<Resource> it = unresolvedResources.iterator(); resource = it.next(); it.remove(); remove(resource, unresolvedResources); } }
/** * Removes a module from the internal data structures if it wasn't selected * as a fragment or a singleton. This process may cause other modules to * become unresolved if they depended on the module's capabilities and there * is no other candidate. * * @param resource the module to remove. * @param ex the resolution error */ private void removeResource(Resource resource, ResolutionError ex) { // Add removal reason to result cache. PopulateResult result = m_populateResultCache.get(resource); result.success = false; result.error = ex; // Remove from dependents. Set<Resource> unresolvedResources = new HashSet<Resource>(); remove(resource, unresolvedResources); // Remove dependents that failed as a result of removing revision. while (!unresolvedResources.isEmpty()) { Iterator<Resource> it = unresolvedResources.iterator(); resource = it.next(); it.remove(); remove(resource, unresolvedResources); } }
/** * Removes the specified module from the internal data structures, which * involves removing its requirements and its capabilities. This may cause * other modules to become unresolved as a result. * * @param resource the module to remove. * @param unresolvedResources a list to containing any additional modules * that that became unresolved as a result of removing this module and will * also need to be removed. */ private void remove(Resource resource, Set<Resource> unresolvedResources) { for (Requirement r : resource.getRequirements(null)) { remove(r); } for (Capability c : resource.getCapabilities(null)) { remove(c, unresolvedResources); } }
/** * Removes the specified module from the internal data structures, which * involves removing its requirements and its capabilities. This may cause * other modules to become unresolved as a result. * * @param resource the module to remove. * @param unresolvedResources a list to containing any additional modules * that that became unresolved as a result of removing this module and will * also need to be removed. */ private void remove(Resource resource, Set<Resource> unresolvedResources) { for (Requirement r : resource.getRequirements(null)) { remove(r); } for (Capability c : resource.getCapabilities(null)) { remove(c, unresolvedResources); } }
/** * Removes a module from the internal data structures if it wasn't selected * as a fragment or a singleton. This process may cause other modules to * become unresolved if they depended on the module's capabilities and there * is no other candidate. * * @param resource the module to remove. * @param ex the resolution error */ private void removeResource(Resource resource, ResolutionError ex) { // Add removal reason to result cache. PopulateResult result = m_populateResultCache.get(resource); result.success = false; result.error = ex; // Remove from dependents. Set<Resource> unresolvedResources = new HashSet<Resource>(); remove(resource, unresolvedResources); // Remove dependents that failed as a result of removing revision. while (!unresolvedResources.isEmpty()) { Iterator<Resource> it = unresolvedResources.iterator(); resource = it.next(); it.remove(); remove(resource, unresolvedResources); } }
/** * Removes the specified module from the internal data structures, which * involves removing its requirements and its capabilities. This may cause * other modules to become unresolved as a result. * * @param resource the module to remove. * @param unresolvedResources a list to containing any additional modules * that that became unresolved as a result of removing this module and will * also need to be removed. */ private void remove(Resource resource, Set<Resource> unresolvedResources) { for (Requirement r : resource.getRequirements(null)) { remove(r); } for (Capability c : resource.getCapabilities(null)) { remove(c, unresolvedResources); } }
/** * Removes the specified module from the internal data structures, which * involves removing its requirements and its capabilities. This may cause * other modules to become unresolved as a result. * * @param resource the module to remove. * @param unresolvedResources a list to containing any additional modules * that that became unresolved as a result of removing this module and will * also need to be removed. * @throws ResolutionException if removing the module caused the resolve to * fail. */ private void remove(Resource resource, Set<Resource> unresolvedResources) throws ResolutionException { for (Requirement r : resource.getRequirements(null)) { remove(r); } for (Capability c : resource.getCapabilities(null)) { remove(c, unresolvedResources); } }
/** * Removes the specified module from the internal data structures, which * involves removing its requirements and its capabilities. This may cause * other modules to become unresolved as a result. * * @param resource the module to remove. * @param unresolvedResources a list to containing any additional modules * that that became unresolved as a result of removing this module and will * also need to be removed. */ private void remove(Resource resource, Set<Resource> unresolvedResources) { for (Requirement r : resource.getRequirements(null)) { remove(r); } for (Capability c : resource.getCapabilities(null)) { remove(c, unresolvedResources); } }
/** * Removes the specified module from the internal data structures, which * involves removing its requirements and its capabilities. This may cause * other modules to become unresolved as a result. * * @param resource the module to remove. * @param unresolvedResources a list to containing any additional modules * that that became unresolved as a result of removing this module and will * also need to be removed. */ private void remove(Resource resource, Set<Resource> unresolvedResources) { for (Requirement r : resource.getRequirements(null)) { remove(r); } for (Capability c : resource.getCapabilities(null)) { remove(c, unresolvedResources); } }
/** * Removes a module from the internal data structures if it wasn't selected * as a fragment or a singleton. This process may cause other modules to * become unresolved if they depended on the module's capabilities and there * is no other candidate. * * @param resource the module to remove. * @param ex the resolution error */ private void removeResource(Resource resource, ResolutionError ex) { // Add removal reason to result cache. PopulateResult result = m_populateResultCache.get(resource); result.success = false; result.error = ex; // Remove from dependents. Set<Resource> unresolvedResources = new HashSet<Resource>(); remove(resource, unresolvedResources); // Remove dependents that failed as a result of removing revision. while (!unresolvedResources.isEmpty()) { Iterator<Resource> it = unresolvedResources.iterator(); resource = it.next(); it.remove(); remove(resource, unresolvedResources); } }
/** * Removes a module from the internal data structures if it wasn't selected * as a fragment or a singleton. This process may cause other modules to * become unresolved if they depended on the module's capabilities and there * is no other candidate. * * @param resource the module to remove. * @param ex the resolution error */ private void removeResource(Resource resource, ResolutionError ex) { // Add removal reason to result cache. PopulateResult result = m_populateResultCache.get(resource); result.success = false; result.error = ex; // Remove from dependents. Set<Resource> unresolvedResources = new HashSet<Resource>(); remove(resource, unresolvedResources); // Remove dependents that failed as a result of removing revision. while (!unresolvedResources.isEmpty()) { Iterator<Resource> it = unresolvedResources.iterator(); resource = it.next(); it.remove(); remove(resource, unresolvedResources); } }
/** * Removes a module from the internal data structures if it wasn't selected * as a fragment or a singleton. This process may cause other modules to * become unresolved if they depended on the module's capabilities and there * is no other candidate. * * @param resource the module to remove. * @param ex the resolution error */ private void removeResource(Resource resource, ResolutionError ex) { // Add removal reason to result cache. PopulateResult result = m_populateResultCache.get(resource); result.success = false; result.error = ex; // Remove from dependents. Set<Resource> unresolvedResources = new HashSet<Resource>(); remove(resource, unresolvedResources); // Remove dependents that failed as a result of removing revision. while (!unresolvedResources.isEmpty()) { Iterator<Resource> it = unresolvedResources.iterator(); resource = it.next(); it.remove(); remove(resource, unresolvedResources); } }
/** * Removes a module from the internal data structures if it wasn't selected * as a fragment or a singleton. This process may cause other modules to * become unresolved if they depended on the module's capabilities and there * is no other candidate. * * @param resource the module to remove. * @param ex the resolution error */ private void removeResource(Resource resource, ResolutionError ex) { // Add removal reason to result cache. PopulateResult result = m_populateResultCache.get(resource); result.success = false; result.error = ex; // Remove from dependents. Set<Resource> unresolvedResources = new HashSet<Resource>(); remove(resource, unresolvedResources); // Remove dependents that failed as a result of removing revision. while (!unresolvedResources.isEmpty()) { Iterator<Resource> it = unresolvedResources.iterator(); resource = it.next(); it.remove(); remove(resource, unresolvedResources); } }
/** * Removes the specified module from the internal data structures, which * involves removing its requirements and its capabilities. This may cause * other modules to become unresolved as a result. * * @param resource the module to remove. * @param unresolvedResources a list to containing any additional modules * that that became unresolved as a result of removing this module and will * also need to be removed. */ private void remove(Resource resource, Set<Resource> unresolvedResources) { for (Requirement r : resource.getRequirements(null)) { remove(r); } for (Capability c : resource.getCapabilities(null)) { remove(c, unresolvedResources); } }
/** * Removes the specified module from the internal data structures, which * involves removing its requirements and its capabilities. This may cause * other modules to become unresolved as a result. * * @param resource the module to remove. * @param unresolvedResources a list to containing any additional modules * that that became unresolved as a result of removing this module and will * also need to be removed. */ private void remove(Resource resource, Set<Resource> unresolvedResources) { for (Requirement r : resource.getRequirements(null)) { remove(r); } for (Capability c : resource.getCapabilities(null)) { remove(c, unresolvedResources); } }
/** * Removes the specified module from the internal data structures, which * involves removing its requirements and its capabilities. This may cause * other modules to become unresolved as a result. * * @param br the module to remove. * @param unresolvedRevisions a list to containing any additional modules * that that became unresolved as a result of removing this module and will * also need to be removed. * @throws ResolveException if removing the module caused the resolve to * fail. */ private void remove(Resource resource, Set<Resource> unresolvedResources) throws ResolutionException { for (Requirement r : resource.getRequirements(null)) { remove(r); } for (Capability c : resource.getCapabilities(null)) { remove(c, unresolvedResources); } }