mirror of https://github.com/apache/archiva.git
Renamed RepositorySearcher to RepositoryIndexSearcher and also some more refactoring
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@359164 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
36a17707a6
commit
962ab23fef
|
@ -47,13 +47,9 @@ import org.apache.maven.artifact.versioning.VersionRange;
|
|||
* specified query string.
|
||||
*
|
||||
*/
|
||||
public class ArtifactRepositorySearcher
|
||||
implements RepositorySearcher
|
||||
public class ArtifactRepositoryIndexSearcher
|
||||
implements RepositoryIndexSearcher
|
||||
{
|
||||
|
||||
private IndexSearcher searcher;
|
||||
private ArtifactRepository repository;
|
||||
private ArtifactFactory factory;
|
||||
private static final String NAME = "name";
|
||||
private static final String GROUPID = "groupId";
|
||||
private static final String ARTIFACTID = "artifactId";
|
||||
|
@ -62,17 +58,19 @@ public class ArtifactRepositorySearcher
|
|||
private static final String XML_TYPE = "xml";
|
||||
private static final String POM_TYPE = "pom";
|
||||
|
||||
private IndexSearcher searcher;
|
||||
private ArtifactRepository repository;
|
||||
private ArtifactFactory factory;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param indexPath
|
||||
* @param repository
|
||||
*/
|
||||
public ArtifactRepositorySearcher( String indexPath,
|
||||
ArtifactRepository repository )
|
||||
public ArtifactRepositoryIndexSearcher( String indexPath, ArtifactRepository repository )
|
||||
{
|
||||
this.repository = repository;
|
||||
factory = new DefaultArtifactFactory();
|
||||
|
||||
try
|
||||
{
|
|
@ -22,7 +22,7 @@ import java.util.List;
|
|||
/**
|
||||
*
|
||||
*/
|
||||
public interface RepositorySearcher {
|
||||
public interface RepositoryIndexSearcher {
|
||||
|
||||
String ROLE = RepositoryIndexer.class.getName();
|
||||
|
|
@ -40,7 +40,7 @@ public class ArtifactRepositoryIndexingTest
|
|||
protected ArtifactFactory artifactFactory;
|
||||
protected ArtifactRepository repository;
|
||||
protected String indexPath;
|
||||
private RepositorySearcher repoSearcher;
|
||||
private RepositoryIndexSearcher repoSearcher;
|
||||
private static final String GROUPID = "groupId";
|
||||
private static final String ARTIFACTID = "artifactId";
|
||||
private static final String VERSION = "version";
|
||||
|
@ -67,7 +67,7 @@ public class ArtifactRepositoryIndexingTest
|
|||
indexer = (ArtifactRepositoryIndexer) factory.getArtifactRepositoryIndexer( indexPath, repository );
|
||||
artifactFactory = (ArtifactFactory) lookup( ArtifactFactory.ROLE );
|
||||
|
||||
repoSearcher = new ArtifactRepositorySearcher(indexPath, repository);
|
||||
repoSearcher = new ArtifactRepositoryIndexSearcher(indexPath, repository);
|
||||
}
|
||||
|
||||
public void testIndex()
|
||||
|
|
Loading…
Reference in New Issue