Package org.apache.maven.index
Class ArtifactContext
- java.lang.Object
-
- org.apache.maven.index.ArtifactContext
-
public class ArtifactContext extends java.lang.ObjectAn artifact context used to provide information about artifact during scanning. It is passed to theIndexCreator, which can populateArtifactInfofor the given artifact.- Author:
- Jason van Zyl, Tamas Cservenak
- See Also:
IndexCreator.populateArtifactInfo(ArtifactContext)
-
-
Constructor Summary
Constructors Constructor Description ArtifactContext(java.io.File pom, java.io.File artifact, java.io.File metadata, ArtifactInfo artifactInfo, Gav gav)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddError(java.lang.Exception e)org.apache.lucene.document.DocumentcreateDocument(IndexingContext context)Creates Lucene Document usingIndexCreators from the givenIndexingContext.java.io.FilegetArtifact()ArtifactInfogetArtifactInfo()java.util.List<java.lang.Exception>getErrors()GavgetGav()java.io.FilegetMetadata()java.io.FilegetPom()org.apache.maven.model.ModelgetPomModel()
-
-
-
Constructor Detail
-
ArtifactContext
public ArtifactContext(java.io.File pom, java.io.File artifact, java.io.File metadata, ArtifactInfo artifactInfo, Gav gav) throws java.lang.IllegalArgumentException- Throws:
java.lang.IllegalArgumentException
-
-
Method Detail
-
getPom
public java.io.File getPom()
-
getPomModel
public org.apache.maven.model.Model getPomModel()
-
getArtifact
public java.io.File getArtifact()
-
getMetadata
public java.io.File getMetadata()
-
getArtifactInfo
public ArtifactInfo getArtifactInfo()
-
getGav
public Gav getGav()
-
getErrors
public java.util.List<java.lang.Exception> getErrors()
-
addError
public void addError(java.lang.Exception e)
-
createDocument
public org.apache.lucene.document.Document createDocument(IndexingContext context)
Creates Lucene Document usingIndexCreators from the givenIndexingContext.
-
-