/** * Remove a repository from the list of attached repositories to * this instances. After this call, the <code>Repository</code> * name will not be used to procure missing modules any * longer * @param name name of the repository to remove */ public synchronized void removeRepository(String name) { for (Integer weight : repositories.keySet()) { Repository repo = repositories.get(weight); if (repo.getName().equals(name)) { repositories.remove(weight); return; } } }
/** * Get a repository from the list of attached repositories * * @param name name of the repository to return * @return the repository or null if not found */ public synchronized Repository getRepository(String name) { for (Integer weight : repositories.keySet()) { Repository repo = repositories.get(weight); if (repo.getName().equals(name)) { return repo; } } return null; }
/** * Get a repository from the list of attached repositories * * @param name name of the repository to return * @return the repository or null if not found */ public synchronized Repository getRepository(String name) { for (Integer weight : repositories.keySet()) { Repository repo = repositories.get(weight); if (repo.getName().equals(name)) { return repo; } } return null; }
/** * Remove a repository from the list of attached repositories to * this instances. After this call, the <code>Repository</code> * name will not be used to procure missing modules any * longer * @param name name of the repository to remove */ public synchronized void removeRepository(String name) { for (Integer weight : repositories.keySet()) { Repository repo = repositories.get(weight); if (repo.getName().equals(name)) { repositories.remove(weight); return; } } }