summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--archiva-modules/archiva-base/archiva-repository/src/main/java/org/apache/archiva/repository/DefaultRepositoryInterceptorFactory.java4
1 files changed, 2 insertions, 2 deletions
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<RepositoryInterceptor>();
- Map beans = beanFactory.getBeansOfType(interceptorType);
+ final Map beans = beanFactory.getBeansOfType(interceptorType);
if (beans != null)
{
- repositoryInterceptors.addAll(repositoryInterceptors);
+ repositoryInterceptors.addAll(beans.values());
}
}
return repositoryInterceptors;