]> source.dussan.org Git - archiva.git/commitdiff
Should add the values of the bean map to the collection archiva-with-new-repoapi 45/head archiva-with-new-repoapi
authorJames William Dumay <jdumay@apache.org>
Thu, 26 Feb 2009 06:09:21 +0000 (06:09 +0000)
committerJames William Dumay <jdumay@apache.org>
Thu, 26 Feb 2009 06:09:21 +0000 (06:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-with-new-repoapi@748030 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-repository/src/main/java/org/apache/archiva/repository/DefaultRepositoryInterceptorFactory.java

index 16eb1338592122cd0698223c2bb24cd4cd9fd2f4..4efb8475e30da74340c3e8996f73fd7cc6d00bea 100644 (file)
@@ -47,10 +47,10 @@ public class DefaultRepositoryInterceptorFactory implements RepositoryIntercepto
         if (repositoryInterceptors == null)
         {
             repositoryInterceptors = new ArrayList<RepositoryInterceptor>();
-            Map beans = beanFactory.getBeansOfType(interceptorType);
+            final Map beans = beanFactory.getBeansOfType(interceptorType);
             if (beans != null)
             {
-                repositoryInterceptors.addAll(repositoryInterceptors);
+                repositoryInterceptors.addAll(beans.values());
             }
         }
         return repositoryInterceptors;