From: James William Dumay Date: Thu, 26 Feb 2009 06:09:21 +0000 (+0000) Subject: Should add the values of the bean map to the collection X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fremotes%2Farchiva-with-new-repoapi;p=archiva.git Should add the values of the bean map to the collection git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-with-new-repoapi@748030 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-base/archiva-repository/src/main/java/org/apache/archiva/repository/DefaultRepositoryInterceptorFactory.java b/archiva-modules/archiva-base/archiva-repository/src/main/java/org/apache/archiva/repository/DefaultRepositoryInterceptorFactory.java index 16eb13385..4efb8475e 100644 --- a/archiva-modules/archiva-base/archiva-repository/src/main/java/org/apache/archiva/repository/DefaultRepositoryInterceptorFactory.java +++ b/archiva-modules/archiva-base/archiva-repository/src/main/java/org/apache/archiva/repository/DefaultRepositoryInterceptorFactory.java @@ -47,10 +47,10 @@ public class DefaultRepositoryInterceptorFactory implements RepositoryIntercepto if (repositoryInterceptors == null) { repositoryInterceptors = new ArrayList(); - Map beans = beanFactory.getBeansOfType(interceptorType); + final Map beans = beanFactory.getBeansOfType(interceptorType); if (beans != null) { - repositoryInterceptors.addAll(repositoryInterceptors); + repositoryInterceptors.addAll(beans.values()); } } return repositoryInterceptors;