summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2014-07-30 18:06:15 +1000
committerBrett Porter <brett@apache.org>2014-07-30 18:06:15 +1000
commitbe20d16cfdc0525e9b5cc58a5953b78c57fc17e1 (patch)
treeb371d7cc89b0252d2d9ac93c4c4dbe9c5d829ecc /archiva-modules/archiva-web
parentb0550f3fcf2d3979ae472a5927aeb1fcfbf138f1 (diff)
downloadarchiva-be20d16cfdc0525e9b5cc58a5953b78c57fc17e1.tar.gz
archiva-be20d16cfdc0525e9b5cc58a5953b78c57fc17e1.zip
more autowiring
Diffstat (limited to 'archiva-modules/archiva-web')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java
index 0aa6660c0..462af2127 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultRepositoriesService.java
@@ -82,6 +82,7 @@ import org.apache.commons.lang.StringUtils;
import org.apache.maven.index.context.IndexingContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.inject.Inject;
@@ -144,6 +145,7 @@ public class DefaultRepositoriesService
protected RepositorySessionFactory repositorySessionFactory;
@Inject
+ @Autowired(required = false)
protected List<RepositoryListener> listeners = new ArrayList<RepositoryListener>();
@Inject