From 8ae8adccb9f4b4cbb6f8d9aa0b90cbdd21ca0509 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 21 Jun 2011 22:14:17 +0000 Subject: 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 --- .../java/org/apache/archiva/indexer/search/NexusRepositorySearch.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archiva-modules/archiva-base/archiva-indexer/src') 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 { -- cgit v1.2.3