소스 검색

Added repository field encapsulation

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@365592 13f79535-47bb-0310-9956-ffa450edef68
tags/archiva-0.9-alpha-1
Edwin L. Punzalan 18 년 전
부모
커밋
947d8180d8

+ 0
- 2
maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/AbstractRepositoryIndex.java 파일 보기

@@ -40,8 +40,6 @@ public abstract class AbstractRepositoryIndex

private IndexWriter indexWriter;

protected ArtifactRepository repository;

/**
* method to encapsulate the optimize() method for lucene
*/

+ 8
- 0
maven-repository-indexer/src/main/java/org/apache/maven/repository/indexing/ArtifactRepositoryIndex.java 파일 보기

@@ -38,6 +38,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
*
* @author Edwin Punzalan
* @todo I think we should merge with Abstract*. Don't see that there'd be multiple implementations based on this
* --> the methods in Abstract are all lucene index methods/validations which can be used by pom and metadata indices
* @todo I think we should instantiate this based on a repository from a factory instead of making it a component of its own
*/
public class ArtifactRepositoryIndex
@@ -66,6 +67,8 @@ public class ArtifactRepositoryIndex
private Analyzer analyzer;

private Digester digester;
private ArtifactRepository repository;

public ArtifactRepositoryIndex( String indexPath, ArtifactRepository repository, Digester digester )
throws RepositoryIndexException
@@ -256,4 +259,9 @@ public class ArtifactRepositoryIndex

return isAdded;
}

public ArtifactRepository getRepository()
{
return repository;
}
}

Loading…
취소
저장