summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2011-06-21 22:14:17 +0000
committerOlivier Lamy <olamy@apache.org>2011-06-21 22:14:17 +0000
commit8ae8adccb9f4b4cbb6f8d9aa0b90cbdd21ca0509 (patch)
tree168514e83dfa744c110c91a7430930610f266f69 /archiva-modules/archiva-base
parent8095a5ff97a54c19f779b16b814204cfcb82f874 (diff)
downloadarchiva-8ae8adccb9f4b4cbb6f8d9aa0b90cbdd21ca0509.tar.gz
archiva-8ae8adccb9f4b4cbb6f8d9aa0b90cbdd21ca0509.zip
NexusRepositorySearch is not thread safe so use scope prototype
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1138211 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base')
-rw-r--r--archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java
index 92f8bea66..2c72edc82 100644
--- a/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java
+++ b/archiva-modules/archiva-base/archiva-indexer/src/main/java/org/apache/archiva/indexer/search/NexusRepositorySearch.java
@@ -36,6 +36,7 @@ import org.sonatype.nexus.index.FlatSearchResponse;
import org.sonatype.nexus.index.NexusIndexer;
import org.sonatype.nexus.index.context.IndexingContext;
import org.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexException;
+import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import javax.inject.Inject;
@@ -49,6 +50,7 @@ import java.util.Set;
* RepositorySearch implementation which uses the Nexus Indexer for searching.
*/
@Service( "nexusSearch" )
+@Scope("prototype")
public class NexusRepositorySearch
implements RepositorySearch
{