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
This commit is contained in:
James William Dumay 2009-02-26 06:09:21 +00:00
parent c2497e80a7
commit 6f9d5f225f
1 changed files with 2 additions and 2 deletions

View File

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